Close mbtiles properly when exiting because there are no features

This commit is contained in:
Eric Fischer
2017-07-18 09:54:59 -07:00
parent 24a182772f
commit 18f9a8dbb7
4 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -1183,7 +1183,7 @@ int main(int argc, char **argv) {
mbtiles_write_metadata(outdb, out_dir, name.c_str(), st.minzoom, st.maxzoom, st.minlat, st.minlon, st.maxlat, st.maxlon, st.midlat, st.midlon, 0, attribution.size() != 0 ? attribution.c_str() : NULL, layermap, true, description.c_str());
if (outdb != NULL) {
mbtiles_close(outdb, argv);
mbtiles_close(outdb, argv[0]);
}
return 0;