sjoin_nearest_gpd
Perform a nearest neighbor spatial join between two geospatial files, matching features by minimum distance. Choose left or right join, set an optional maximum distance, and save the result to a specified path.
Instructions
Nearest neighbor spatial join using geopandas.sjoin_nearest. Args: left_path: Path to the left geospatial file. right_path: Path to the right geospatial file. how: Type of join ('left', 'right'). max_distance: Optional maximum search distance. output_path: Optional path to save the result. Returns: Dictionary with status, message, and output info.
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>"
},
"name": "sjoin_nearest_gpd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| left_path | Yes | ||
| right_path | Yes | ||
| how | No | left | |
| max_distance | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||