it would be nice to be able to specify some additional criteria on a source layer when doing a selection. For Instance, Select features from: X which intersect source Layer: Ybut only where source layer Y; field = abcCurrently if you want to do this you would need to set a definition query on the source layer prior to doing the selection.
Looking at the docs, SQL reference for query expressions used in ArcGIS—ArcGIS Pro | ArcGIS Desktop
It looks like you can write a subquery (query within a query). Is that what you're looking for, or is that something else?
Please add the ability to add an expression (where clause) to Select By Location. This would speed up the usability of the interface for selecting features by location.
The work-around is to perform a Select By Attributes first and then switch back to the Select By Location dialog and then select the output from Select By Attributes to use as the filter. Yes that works, but not a good interface design to make the user switch back and forth between dialogs. Using two dialogs is also not intuitive to new users because, I think most users assume, an expression button would be made available to them as that would be a good design.
For example, assume I have a dataset called my_data and I want to select all of the records which exist in the state of California. I can either set a Definition Query in the properties of my States Layer or run the Select By Attributes query. Both of those options require me to leave the Select By Location dialog. If I have the ability to set a where clause expression in Select By Location then I never have to leave the dialog and I can perform my entire task within the tool.
Please see my attached drawing as an example for adding this functionality to the Select By Location tool in Arcgis Pro.
A similar idea was proposed in 2013:select-by-location-allow-for-where-clause-on-source-layer
Like @TimJohnston5 said, this would be an extremely convenient function and one that I think would be relatively easy to add to the Select by Location query window in Pro. Often I either have to create a definition query or make a layer from selected features before running a Select by Location query, but having an attribute/location selector combined in one tool would save time and keep the Contents pane cleaner.
Thank you for this idea, we will keep it under consideration for a future release.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.