Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
In QGIS, I have a polygon layer in which every polygon intersects at least another one.
How do I select the ones that intersect more than two of them?
Using overlay_intersects(@layer) selects all of them.
overlay_intersects(@layer)
You can use overlay_intersects with the expression 1 to return a one for each intersecting polygon, then sum and select sum over 1:
1
array_sum(overlay_intersects(layer:='yourlayernamehere', expression:=1)) > 1
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.