topojson icon indicating copy to clipboard operation
topojson copied to clipboard

holes in multipolygons are lost by simplification

Open mephinet opened this issue 1 year ago • 0 comments

I'm experiencing an issue when simplifying a geometry that has a hole in it (and is thus a Multipolygon) in the input). This reproducer downloads a Geopackage, extracts a single Multipolygon, and then uses topojson to simplify it. It saves a GEOJSON before and after simplifying. You can see that while the original GeoJSON still has a hole, the simplified one does not any more: https://github.com/mephinet/topojson-reproducer My first guess is that the nesting level in the "coordinates" confuses topojson..?

mephinet avatar Aug 12 '22 13:08 mephinet