set_definition_query
Apply a SQL WHERE clause to filter features on an ArcGIS Pro layer, or clear the filter with an empty string.
Instructions
Set a layer's definition query (SQL where clause). Empty string clears it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | SQL where clause, e.g. "POP > 10000". | |
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |