[GIS] How to delete dangling paths after merging features

qgisshapefile

In my previous question I've asked how to can I merge different polygons while converting to GeoJSON and TopoJSON.

After a day of researching I've realized that, rather trying to do it command line, I should use some editor which can handle Shapefile data. So, I've choose QGIS.

I've toggled to edit mode, chose all areas needed and called "merge selected features". After the merge I'm getting something like this:
enter image description here

I'm expecting to get all countries in Africa joined into one region.
But, as you can see, I'm getting some dangling paths.
My question is – what I'm doing wrong, how I can avoid such dangling paths or get rid of them after the merge? Since selecting all this nodes via "Node tool" does not help much.

Best Answer

After running into the same problem myself, I figured out how to fix it in QGIS.

The key bit of information is that those "paths" or "lines" that you think you see are ACTUALLY, in all likelihood, sliver polygons. Go into editing mode, zoom way in, and you'll probably notice that some of the nodes on your little "lines" are marked with brighter red X's than the others. This is because several notes are stacked on top of each other.

Here's how to fix:

  1. Turn on your node editing tool and select one of the brighter red X's so that it turns blue.
  2. Drag that node away from the line. You will probably see that you now have created a small blank polygon. It's not a feature -- it's a tiny ring in the middle of your real polygon.
  3. Select the "Delete Ring" tool from the Advanced Digitizing toolbar.
  4. Click on your empty polygon. Presto! It's gone! Very satisfying.
  5. Repeat for all your dangles.
Related Question