select_by_location
Select features from one layer based on spatial relationships to another layer, such as intersects or within a distance, to filter data for mapping and analysis.
Instructions
Select features by spatial relationship to another layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invert | No | INVERT to select everything the relationship does not match. | NOT_INVERT |
| method | No | How to combine with the current selection. | NEW_SELECTION |
| 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. | |
| relationship | No | INTERSECT, WITHIN_A_DISTANCE, CONTAINS, WITHIN, COMPLETELY_WITHIN, HAVE_THEIR_CENTER_IN, CROSSED_BY_THE_OUTLINE_OF, ... | INTERSECT |
| search_distance | No | Distance for WITHIN_A_DISTANCE, e.g. "500 Meters". | |
| select_features | Yes | Layer or path whose features define the relationship. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |