Select to view content in your preferred language

Set Spatial Definition Query on Feature Layer

255
2
Jump to solution
07-29-2025 08:10 AM
MK13
by
Frequent Contributor

I see that in ArcGIS Pro 3.5 we can now set a spatial definition query on a layer. In the Pro SDK, I am aware that I can do featureLayer.setDefinitionQuery() to set a definition query on the layer. But is there a way to set a spatial definition query on the feature layer from the sdk? I am unable to find such a method in the API reference docs.

@SelimDissem @UmaHarano @Wolf @CharlesMacleod 

0 Kudos
1 Solution

Accepted Solutions
UmaHarano
Esri Regular Contributor

Hi @MK13 

Check out this snippet: Querying a feature layer with a spatial filter 
Please let me know if you have any questions about this -

Uma

 

 

View solution in original post

0 Kudos
2 Replies
UmaHarano
Esri Regular Contributor

Hi @MK13 

Check out this snippet: Querying a feature layer with a spatial filter 
Please let me know if you have any questions about this -

Uma

 

 

0 Kudos
MK13
by
Frequent Contributor

Uma, that works perfectly. Thank you.

0 Kudos