From 87b83d8012bf9af7f97986ab46fa12bf92a96b6e Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Fri, 25 Aug 2023 13:57:37 -0700 Subject: [PATCH] Treat tiny polygon reduction as a reason to extend zooms --- tile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tile.cpp b/tile.cpp index 34d43f0e..4f9a5356 100644 --- a/tile.cpp +++ b/tile.cpp @@ -2195,6 +2195,7 @@ long long write_tile(decompressor *geoms, std::atomic *geompos_in, ch sf.geometry = reduce_tiny_poly(sf.geometry, z, line_detail, &reduced, &accum_area, &accum_hole, &sf, &tiny_feature); if (reduced) { strategy->tiny_polygons++; + arg->still_dropping = true; } if (sf.geometry.size() == 0) { continue; @@ -3258,6 +3259,7 @@ int traverse_zooms(int *geomfd, off_t *geom_size, char *stringpool, std::atomic< if (extend_zooms_max > 0) { extend_zooms_max--; } + again = true; // since detail or simplification may be different at maxzoom than at other zooms } if ((size_t) z >= strategies.size()) {