spatial_join
Join two spatial datasets using intersects, within, or contains predicates, with automatic engine selection and warnings for empty or non-overlapping results.
Instructions
Join by spatial predicate (intersects/within/contains).
engine='auto' routes to the fastest available engine for the inputs:
SedonaDB (heavy joins, 10-180x) > DuckDB (GeoParquet fast path) > GeoPandas.
A warnings key in the result flags an empty join or inputs whose extents
do not overlap, each with a hint. Inputs without a CRS are refused.
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": "spatial_join"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | auto | |
| left_path | Yes | ||
| predicate | No | intersects | |
| right_path | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||