Add an option to specify the size of tiny polygons

This commit is contained in:
Erica Fischer
2022-08-23 13:20:42 -07:00
parent 5158576366
commit 3f8fb2177e
38 changed files with 1620 additions and 1410 deletions
+3
View File
@@ -1983,6 +1983,9 @@ long long write_tile(FILE *geoms, std::atomic<long long> *geompos_in, char *meta
if (sf.t == VT_POLYGON) {
if (!prevent[P_TINY_POLYGON_REDUCTION] && !additional[A_GRID_LOW_ZOOMS]) {
sf.geometry = reduce_tiny_poly(sf.geometry, z, line_detail, &reduced, &accum_area);
if (reduced) {
strategy->tiny_polygons++;
}
}
has_polygons = true;
}