2

I use QGIS 3.10 on a MacOS 10.13 environment. I've got a point shapefile layer and a polygon shapefile layer. I want to set a filter to show (and work with) only those points that are within a certain polygon. I've tried the expression

intersects($geometry, geometry(get_feature('layer', 'attribute', 'value')))

that would work in the query builder, but not so in the filter builder. How can it be done?

2
1

you can use the expression to add a new field and use this one for your filter:

enter image description here

2
  • Yeah, that's an option, though it means adding a new column in the points layer for the intersection with each polygon. – Jesús Pinilla Feb 17 at 7:20
  • yes a column in the layer which you want to filter, in the image above the orange (A) can be filterd like: "intersects"=1 which will only display polygons 2 and 3 – eurojam Feb 17 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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