I have an quite complicated polygon shapefile and a lot buffers around points (second shapefile).
These small polygons are within and outside of the big polygon. I need to select those polygons which touch the boarder(line) of the big polygon, no matter if the are outside or inside of it.
I found this solution for PostGIS (How do I select points within a specified distance of a polygon's border?), but the query can't be used in QGIS.
I tried out all of the "Select by location" options in QGIS, but intersect only selects those that are within the polygons and 'disjoint' those that are outside of the polygons.
The buffers were only created in order to get the points with a certain distance to the polygons boarder, that's why also a query using a distance and the points would work.
I think this expression from PostGIS should be reformulated for QGIS:
SELECT DISTINCT point.*
FROM point
JOIN boundary
ON ST_DWithin(point.the_geom, boundary.geom_boundary, 100)
I’ve never used the "Select by Expression" function.