O'Reilly logo

ArcGIS By Example by Hussein Nasser

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

Finding restaurants in a region

We learned how to query the regions that were located in another geodatabase and populate them in a list. So far we didn't add any logic to filter restaurants in a particular region; here is where we can achieve that.

Spatial queries

In the previous six chapters, we learned how to query feature classes and even related tables. These queries were attribute related and didn't involve any spatial components. However, sometimes you will need to use the geometric property of the feature class in your query, and that is when you will need the spatial query. The spatial query uses a relational operator, such as intersects or contains, to retrieve all records that satisfy this criterion.

Note

Spatial query: This is a geodatabase ...

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