Post-cleaning resimplification is too disruptive

This commit is contained in:
Erica Fischer
2023-08-25 14:11:58 -07:00
parent 87b83d8012
commit 93d77d32e7
7 changed files with 63 additions and 62 deletions
+7 -1
View File
@@ -627,12 +627,14 @@ void *partial_feature_worker(void *v) {
}
}
#if 0
if (!(prevent[P_SIMPLIFY] || (z == (*partials)[i].maxzoom && prevent[P_SIMPLIFY_LOW]))) {
// there may be another opportunity for more simplification after geometry cleaning
geom = simplify_lines(geom, 32, 0, false, (*partials)[i].simplification, 4, drawvec());
// in which case we need to clean again
geom = clean_or_clip_poly(geom, 0, 0, false);
}
#endif
}
}
@@ -2195,7 +2197,11 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *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;
// extending zooms without a cap will often extend too far, so don't risk it
if (extend_zooms_max > 0) {
arg->still_dropping = true;
}
}
if (sf.geometry.size() == 0) {
continue;