nearest_join
Join each feature to its nearest neighbor from another layer and record the distance in meters. Distances are computed in an estimated UTM zone to avoid silent degree-based errors.
Instructions
Attach each feature's nearest neighbour from another layer, with the distance IN METERS in a named column.
Geographic-CRS inputs are measured in an estimated UTM zone (decision
recorded in the manifest) and returned in the input CRS — a nearest
distance in degrees is the classic silent error of this operation, and it
cannot happen here. max_distance_meters drops pairs farther than that; an
emptied result comes back with a warnings entry, never silently.
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": {
"left_path": "<left_path>",
"right_path": "<right_path>",
"output_path": "<output_path>"
},
"name": "nearest_join"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| left_path | Yes | ||
| right_path | Yes | ||
| output_path | Yes | ||
| distance_column | No | nearest_distance_m | |
| max_distance_meters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||