mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Progress on preventing polygon collapse
This commit is contained in:
@@ -614,8 +614,11 @@ void *partial_feature_worker(void *v) {
|
|||||||
drawvec geom = (*partials)[i].geoms[0];
|
drawvec geom = (*partials)[i].geoms[0];
|
||||||
|
|
||||||
if (t == VT_POLYGON) {
|
if (t == VT_POLYGON) {
|
||||||
geom = clean_or_clip_poly(geom, 0, 0, false, false);
|
drawvec cleaned = clean_or_clip_poly(geom, 0, 0, false, false);
|
||||||
fix_by_triangulation(geom, z, out_detail);
|
drawvec fixed = fix_by_triangulation(geom, z, out_detail);
|
||||||
|
if (fixed != cleaned) {
|
||||||
|
geom = fixed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
to_tile_scale(geom, z, out_detail);
|
to_tile_scale(geom, z, out_detail);
|
||||||
|
|||||||
Reference in New Issue
Block a user