Replies: 2 comments 4 replies
-
The first problem is detecting that they are shared between polygons. To do it right we'd the input to be in a format like topojson or at least convey which points of a polygons are shared between more than two polygons so we can avoid removing them during simplification. Absent that though we could have a routine do the work to compute shared edges before simplification - except we'd need access to both geometries when simplifying but planetiler only processes individual geometries in isolation so we'd need to do it in post-process. Another option would be to limit simplification to only remove points that increase the area of a polygon but not decrease it (so it only produces overlaps but not gaps). Would that work? |
Beta Was this translation helpful? Give feedback.
-
Tippecanoe has this functionality with https://github.com/felt/tippecanoe#attempts-to-improve-shared-polygon-boundaries |
Beta Was this translation helpful? Give feedback.
-
Is it possible to simplify polygon boundaries such that they stay shared between neighboring polygons?
I was playing around with landcover polygons and found that douglas peuker makes boundaries different for neighboring polygons. This creates gaps.
Beta Was this translation helpful? Give feedback.
All reactions