4

I've read this question. I would like to know how to do this in QGIS.

I have a Geojson file with a featurecollection, starting with:

{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[5.21846588339...

But there are also quite a few MultiPolygons in the collection.

When I do the following:

  • Import the GeoJSON file in QGIS (add layer --> vector layer)
  • Select all of it
  • Do a dissolve (vector --> geoprocessing tools --> dissolve)

Then all the normal polygons get merged into a giant multipolygon, but not the multipolygons in the original collection.

What is the best way to include them? I've thought about manually "splitting" them into polygons in the geojson file with a text editor (because individual feature metadata is not important/removed after the dissolve anyway). But I have to do this more often in the future, and it seems like this should be doable automatically :)

Before Dissolve:

Before Dissolve

After Dissolve:

After Dissolve

1 Answer 1

1

You can do a "Multipart to singlepart" before dissolving.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.