Accept tilestats limiting options in tile-join, not just tippecanoe (#8)

This commit is contained in:
Erica Fischer
2022-08-12 13:57:04 -07:00
committed by GitHub
parent fec5e8354c
commit 4ea8a37611
11 changed files with 7547 additions and 3 deletions
+6
View File
@@ -500,6 +500,7 @@ void mbtiles_write_metadata(sqlite3 *outdb, const char *outdir, const char *fnam
state.nospace = true;
bool first = true;
size_t attribute_count = 0;
for (auto j = fk->second.file_keys.begin(); j != fk->second.file_keys.end(); ++j) {
if (first) {
first = false;
@@ -526,6 +527,11 @@ void mbtiles_write_metadata(sqlite3 *outdb, const char *outdir, const char *fnam
} else {
state.json_write_string(f->second);
}
attribute_count++;
if (attribute_count >= max_tilestats_attributes) {
break;
}
}
state.nospace = true;