Select to view content in your preferred language

Add a spatial definition query in ArcGIS Pro

177
5
Friday
Status: Already Offered
Labels (1)
TD1
by
Frequent Contributor

In ArcGIS Pro Sometimes you only want to see only the features that you have selected on the map. Need the ability to do a definition query but spatially. For example I have 5000 points but I only want to see 100 of those points on the map and there is no common attribute query that could identify those 100 points and can only be identified spatially. 

 

Maybe on attribute table once features are selected a button to "make a definition query"? Open to suggestions but right now it's very frustrating.

5 Comments
SteveCole

I'm not a staunch defender of ArcGIS Pro but I believe you can already do this? After selecting features, right-click on the layer in the TOC and under the Selection side menu, there's an option to create a layer from the selected features.

layerFromSelectedFeatures.jpg

 

TD1
by

@SteveCole Thank you for letting me know. This is fantastic! I think I'll use the other option "Generate definition query from selection".

This resolves my idea. Consider the case closed.

SteveCole

I certainly use it but be aware of the caveat that is listed in the documentation:

The selection layer is only useful as a temporary working dataset, for example, as an input into a geoprocessing model. It lists the FeatureIDs (FIDs) or ObjectIDs (OIDs) of the selected features. These are invalidated when the original data source is updated or changed.

MervynLotter

A new capability was introduced into ArcGIS Pro 3.5 that allows you to create a spatial definition query. The definition query is defined spatially based on the spatial extent of another layer, or the extent of that layer in the map view.

After opening up the layer properties, and the Definition Query tab, click on Add Clause and then select the new "Add Spatial Clause" drop-down.Spatial query 1.pngSpatial query 2.png

Then choose the layer and its spatial extent that you want to use for your definition query. 

Importantly, once applied, do give it a unique name (instead Query 1) so that you can easily reuse this spatial query any other time again in the future. 

Spatial query 3.png

Do see Spatially Filter Feature Layers with Definition Queries

TanuHoque
Status changed to: Already Offered

Thank you all!