I have an area (polygon layer AoI in red) for which I want to evaluate the total overlap of polygons within a different layer, with the catch that within that layer, polygons are overlapping each other (multiple times) and I want to count that area as well.
I've established that the QGIS overlap analysis tool doesn't calculate multiple overlaps within the same layer.
There are similar questions, mostly ten years old and mostly revolving around finding and extracting that overlap (which would also help in some cases, but as soon as more than two features overlap it will get tricky again):
- Calculating Feature Overlap Area within Single Shapefile
- How to calculate the area of overlapping buffers within a single layer
- Extracting Overlapping Parts of Single Polygon Layer using QGIS?
- how to extract overlap from non-dissolved buffer zones in qgis 1.7.4
These questions are either unanswered, unsolved or suggest non-QGIS tools. I am wondering whether 10 years later, maybe we can find a QGIS solution with QGIS board tools?
One promising answer led me to an approach with PostGIS, which sounds like it would have more powerful tools to do what I want, but I'm not that familiar with how I would implement a solution for my problem with that in QGIS.
The most promising answer/approach for me was this one, suggesting a solution for ArcGIS, where I modified step 1 to 4 here for QGIS, but I get stuck at the last step:
- Run the Union tool on the polygon feature class.
- Add the field
x(Double) with field calculator:x(@geometry) - Add the field
y(Double) with field calculator:y(@geometry) - Add the field
count(integer) as1 - Run the dissolve tool on x and y fields and also allow for the SUM of the count in the statistics field. <<< how do I do that?!
If I'd solve step 5, I could use count to multiply the $area and from there on I would find a solution to aggregate this per area of interest. It still would be a mess and anything but elegant, but I'd see a way; but I don't see how I achieve a "Dissolve with sum" in QGIS.

