I have a set of points, which are located in the same area where the other, polygon layer is located.
I would like to have all the points selected, but ONLY within the one polygon belonging to the different layer. I.e. I would lie to have all points selected within the Polygon ID = 1 and so forth.
The following option:
Vector -> Research Tool -> Select by location -> "Are within"
simply doesn't work, because it selects the points falling within the whole polygon layer, which comproses of 7 polygons exactly. I would like to have the selection only within one polygon.
I think, the issue could be an analog to this thread:
Selecting only polygons that contain another polygon with Select by Location in QGIS
However, these formulae applies didn't work.
Potentially this option:
could be doable, but it looks like I have to create some virtual layer first.
I tried also these approaches:
Intersection between points and polygons in QGIS
QGIS select by location doesn't use selected features only
https://www.youtube.com/watch?v=CU1A86JJMIk&ab_channel=OpenSourceOptions
Selecting features within polygon from another layer using QGIS
QGIS how to select entries not in another layer
but they didn't work for me.
Is there any way to make this selection just within one polygon of the external layer?
overlay_within('namePolygonLayer', filter:=id=2)
expression to write for the point layer.