Hi all:) I have a spatial operations/intersections question. I have a couply (actually many) polygon layers. Some of them intersect, others dont (like in the image). I basically want to count the "layers" if you want to call it like that. It's kind of a recursive intersection always intersecting two and the result with the next one. What I want is to more or less create a heatmap from polygon data
The purple in the image should have the value of 3. The green and grey partially a vakue of 2 (where the overlap) and partially 1 (where they dont overlap)
This minimal project is also available here: https://github.com/RobinKohrs/rec_intersection/raw/refs/heads/main/rec_intersection.gpkg
Is that somehow a common problem?
I guess you could automate it in python/r with intersctions and differences but I feel like there might be a better way?!:)




