[GIS] How to select polygons by distance to a single polygon in another layer

distanceqgisselect-by-location

I have a shapefile A with a group of polygons, lakes.
Now I want to select the polygons(lakes) that are within a specific distance to a polygon in a second shapefile, B, with the polygon a city.

In other words, I am looking for something like ArcGIS "Select By Location" and "are within a distance of the source layer feature"

I tried Select by Location, and also Select by Radius, but didn't manage to get any of them to work.

Best Answer

One way to achieve this is to first buffer your city polygon and then use the Spatial query plugin with intersect.

Adding a "within a distance of" option would be a nice extra for the Spatial query plugin.