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.
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 | |||