Select by Attribute
select_by_attributeFilter features in a layer using a SQL where-clause to apply attribute conditions. Choose from new, add, remove, or subset selections and returns the count.
Instructions
Select features in a layer using a SQL where-clause (e.g. "population > 100000"). selection_type: NEW_SELECTION (default), ADD_TO_SELECTION, REMOVE_FROM_SELECTION, SUBSET_SELECTION. Returns the selected feature count. Use list_fields and get_unique_values first to build a valid clause.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| where_clause | Yes | ||
| selection_type | No | NEW_SELECTION |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||