I have a single SHP-layer (12,810 features) and want first of all to identify intersections (incl. duplicates --> features with identical geometries). In the next step I want to delete/clip these intersections and assign them to one of the features so no intersections are present anymore. It would be best to assign the overlaps to those features where the area fraction of the overlaps is greatest (in the best case).
I´ve tried the Intersection Tool but in this case all of the features will be automatically selected (cause working only with 1 layer). Using the Topology Checker Plugin I get the table with overlap errors (using the rules: must not overlap + must not have duplicates). As a result all of the features with overlapping parts are highlighted but no layer has been created so I cannot create a spatial selection. But this also doesn´t help since I only want to identify the overlapping parts of polygons within a single layer and not select the whole polygons with overlapping parts (To select those features I can use the solution proposed by @Hast. Identifying overlapping polygons in single layer using QGIS?
Using the Check Geometries Plugin (similar settings to the Topology Checker Plugin) I only got again a a new layer (idential to the original one).
I suppose for this task either a PyQGIS script or a model in QGIS modeler is necessary. But I have no idea which QGIS processing tools should I use or which workaround.
Do you have any ideas?
Update: How described below after running the
Intersection tool I split the field with the FIDs with overlaps (e.g. 1|5|18 --> 1) via the field calculator and ran the
Dissolvetool based on this field. Before that I ran the
Fix geometrytool to repair the geometry (lots of editing errors were present). As you can see on the last screenshot some features haven´t been dissolved although for each feature at least 1 FID exists. (E.g. FID 27 in the original layer and 2 features which overlap with this one, so in the intersection layer 3 features with FID = 27 are present). After running the
Dissolvetool, the Dissolved layer only contains the 2 intersection features but not that from the original layer (green))...
Do you have an idea why some features couldn´t been dissolved?
Select by location tool (using the overlap parameter) (original layer vs. dissolved layer) selected much more features then it should which I also don´t understand. I manually selected the missing features (green) and merged them to the dissolved layer via
Merge vector layers. After that I again ran the
Dissolvedtool but again some intersections were still present.