3

Is there a way to filter polygons that share more than 2 vertices with a feature?

I have a problem where I have a layer being controlled by Atlas, and I would like to show on Atlas only the coverage feature and the neighbouring features that share more than 2 vertices with it.

Up until now I can achieve what is in the first image using touches($geometry, @atlas_geometry) in the filter in rule-based symbology. But I wanted something like in the second image. Is there a way to do that?

enter image description here

enter image description here

1 Answer 1

4

Using the ruled based symbology filter, you can compute the intersection and keep the ones having more than 1 point

num_points(intersection($geometry,@atlas_geometry))>1

1
  • 1
    That exactly what I needed! Thank you!!
    – Felippe M.
    Feb 17, 2021 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.