[GIS] Removing overlapping/duplicate polygons in the same layer using QGIS

overlapping-featurespolygonqgisvector

I am working in QGIS on a vector layer where areas are classified using an attribute "typo". The problem I'm encountering is that many polygons are duplicated or overlapping, with the result that some areas are classified as two or more "typo". This is an error.

In order to make some statistical analysis I need to clean this layer removing the overlapping/duplicates so that every inch of territory is classified as one and only one "typo"; which one is indifferent. How can I perform it?

Best Answer

To remove duplicates:

  • You can use the Delete duplicate geometries tool by accessing it via the Processing Toolbox:

    Delete duplicate geometries

  • Another option is to use the v.clean tool from GRASS and select the rmdupl option:

    v.clean from GRASS

To remove overlaps:

  • You can use the Dissolve tool, provided there are common attributes between the original polygon and the overlapping polygon:

    Dissolve

  • As always, you can manually remove them if there are only a handful. You can do this via the Attribute Table, find your overlapping polygons (useful in conjunction with a topology checker to highlight the overlaps) and select the option to delete features.