I would like to extract a number of features from a ShapeFile which match with specific latitude/longitude values. I am interested if/how this can be done with QGIS and ogr2ogr. The output should be a ShapeFile as well; for QGIS a layer is sufficient.
I assume the command for ogr2ogr could be something like:
ogr2ogr -f "ESRI Shapefile" -where "Y = 40.752459 AND X = -73.983521" output.shp input.shp
However I am having difficulties finding out what the attributes for lat/lon are named.
Optional: Also, is there an option for a fuzzy query where I can configure a radius around the coordinates?
I am running Ubuntu 12.04. with QGIS 1.9.0 via ubuntugis-nightly and GDAL 1.10.0.