2

I am looking for an efficient method to edit and remove the space between multipart polygons in QGIS 3. I have an example below which should hopefully be clear:

Multipart polygon

enter image description here

Final result

enter image description here

I know I can trace around the perimeter to create a new feature but this isn't always practical. Ideally I would like to edit it in place without the need of creating a new layer.

2

In QGIS, I think that a good workaround can be afforded by activating snapping options and creates a 'New scratch layer', as in following image, because it is necessary to include 4 critical vertices in a new layer.

enter image description here

Afterward, you can use merge processing tool (with 'New scratch layer' and original multipolygon) for producing a layer as follows; where I manually edited id attributes table (it can be automatized with a python script) to facilitate last dissolve process.

enter image description here

Finally, dissolving by id (Dissolve Processing Tool), it can be obtained expected result:

enter image description here

  • May I ask which OS are you working on? Some sort of Linux distribution? – Taras Sep 23 at 18:01
  • Yes, GNU/ Debian 10 (code name buster; actual stable version). – xunilk Sep 23 at 18:25
  • Thanks for your workaround - it is a shame there is not a native tool to do this. The minimum bounding geometry tool is so close but just doesn't maintain the desired shape. – AWGIS Sep 24 at 8:15
  • The key process is doing automatically the 'New scratch layer' for including the 4 critical vertices. Done this it would be possible for all processes with PyQGIS. I will think in it. – xunilk Sep 24 at 11:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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