Spatial queries are core to many types of GIS analysis. In QGIS, this functionality is available via the Spatial Query plugin.
We will be working with 2 datasets - a lines layer representing rivers and a point layer representing cities. The task is to run a spatial query to find all cities that are within 10 kms of a river.
We will use ne_10m_rivers_lake_centerlines and 10m_populated_places_simple datasets from Natural Earth.
Download Rivers and Lake Centerlines
Download Populated Places.
For convenience, you can also download a copy of this data by clicking on following links: (right-click and choose Save link as....)
Note
The World_Azimuthal_Equidistant projection spans 90 degrees from the origin. Here the origin being 0 degrees longitude, the only data contained within +/- 90 degrees longitude will be converted.