mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
Post-cleaning resimplification is too disruptive
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user