Convert GeoJSON with multiple Polygons and MultiPolygons into single MultiPolygon?

المشرف العام

Administrator
طاقم الإدارة
Is this even possible? I have a GeoJSON file with multiple polygons and multipolygons, and I need to set styling on them (in Leaflet.js). I'd like to create a single, large MultiPolygon from the individual MultiPolygons and Polygons. How can I do this (preferably in Node.js or at the Linux command-line).

Things get really tricky when there's a MultiPolygon consisting of Polygons AND other Multipolygons. Can this be "cleaned up" without any loss of information?

Any pointers will be greatly appreciated.



أكثر...
 
أعلى