Select Layer By Location
arcgis_pro_select_layer_by_locationSelects features in a layer by spatial relationship to another layer, then verifies ArcPy counts match the actual selection set in ArcGIS Pro.
Instructions
按空间关系更新图层选择集,并核验 ArcPy 派生计数与实际选择集一致。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"aprx_path": "<aprx_path>",
"map_name": "<map_name>",
"input_layer_name": "<input_layer_name>",
"overlap_type": "<overlap_type>",
"selecting_layer_name": "<selecting_layer_name>"
},
"name": "arcgis_pro_select_layer_by_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | Yes | ||
| aprx_path | Yes | ||
| overlap_type | Yes | ||
| selection_type | No | NEW_SELECTION | |
| search_distance | No | ||
| input_layer_name | Yes | ||
| selecting_layer_name | Yes | ||
| invert_spatial_relationship | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||