select_by_attribute
Filter layer features by SQL conditions to create, add to, remove from, or subset the current selection.
Instructions
Select features in a layer using a SQL WHERE clause.
Args: layer: Exact layer name as shown in the Contents pane where_clause: SQL expression (e.g. "population > 100000" or "type = 'road'") selection_type: NEW_SELECTION, ADD_TO_SELECTION, REMOVE_FROM_SELECTION, SUBSET_SELECTION (default: NEW_SELECTION)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| where_clause | Yes | ||
| selection_type | No | NEW_SELECTION |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |