Add the option not to limit the feature count at maxzoom

This commit is contained in:
Erica Fischer
2022-11-08 10:32:35 -08:00
parent f5bd2a7522
commit ace173ab7a
7 changed files with 741 additions and 2 deletions
+2 -1
View File
@@ -2582,7 +2582,8 @@ long long write_tile(FILE *geoms, std::atomic<long long> *geompos_in, char *meta
}
}
if (totalsize > max_tile_features && !prevent[P_FEATURE_LIMIT]) {
if (totalsize > max_tile_features && !(prevent[P_FEATURE_LIMIT] ||
(z == maxzoom && prevent[P_FEATURE_LIMIT_MAXZOOM]))) {
if (totalsize > arg->feature_count_out) {
arg->feature_count_out = totalsize;
}