O'Reilly logo

Mastering QGIS - Second Edition by GISP Dr. John Van Hoesen, Dr. Luigi Pirelli, GISP Dr. Richard Smith Jr., GISP Kurt Menke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Complex spatial and aspatial queries

QGIS provides powerful spatial and aspatial query tools that allow for the easy creation of data subsets. In this section, a series of spatial and aspatial queries will be used to determine which elementary schools are within the Southeast Uplift Neighborhood Coalition (SEUL) and Southwest Neighborhoods Inc. (SWNI) coalitions in Portland, Oregon. This example uses the Neighborhoods_pdx.shp and schools.shp sample data.

First, we will select the SEUL and SWNI coalition neighborhoods from Neighborhoods_pdx.shp. To do this, perform the following steps:

  1. Open the attribute table of Neighborhoods_pdx. Click on the Select features using an expression button () to open the Select by expression window. This window is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required