felt / tippecanoe

Build vector tilesets from large collections of GeoJSON features.
BSD 2-Clause "Simplified" License
906 stars 78 forks source link

Don't allow continuous polygons to collapse into dust #155

Open e-n-f opened 10 months ago

e-n-f commented 10 months ago

With the --no-simplification-of-shared-nodes option, shard gaps could still be introduced between polygons through interaction with the collapse of tiny polygons into polygon dust. This PR prevents polygons that have been determined to share a border with another polygon from collapsing into dust.

Affected test

tests/ne_110m_admin_0_countries/out/-D8_-d8_-z1_-yname_--no-simplification-of-shared-nodes.json:

Before:

Screenshot 2023-10-20 at 11 36 55 AM

After:

Screenshot 2023-10-20 at 11 37 41 AM
ChrisLoer commented 10 months ago

For manual testing, my plan is to test within Felt on the matched Felt PR, rather than testing directly with tippecanoe.