Is there any GIS function which gives back the polygons of the intersections by storing the number of the overlapping surfaces to an attribute?
Or do you have a script for this purpose?
A sample pic with transparency:
I used the following workflow to obtain results similar to what you seem to be looking for:
Run the Intersection tool and select the same layer for the Input and Intersect layer.
Run the Delete duplicate geometries tool as the output from Step 1 will produce annoying duplicates.
Run the Join attributes by location tool and select the output layer from Step 2 as both input layers:
This step creates a
count field which will contain the number of intersections for each polygon. However, if no polygon is being intersected, it will count as
1 so we need to subtract this in the next step.
Run the Field Calculator and update the
count field using the expression:
"count" - 1
I used the workflow and seem to get reasonably correct results:
If you don't wan to do the above steps manually, you could create a model such as this one:
Or you can download it and copy it to your