sjoin_gpd
Perform a spatial join between two geospatial files using a user-defined predicate and join type. Combines attributes from the right dataset with the left based on spatial relationships like 'intersects' or 'within'.
Instructions
Spatial join between two GeoDataFrames using geopandas.sjoin. Args: left_path: Path to the left geospatial file. right_path: Path to the right geospatial file. how: Type of join ('left', 'right', 'inner'). predicate: Spatial predicate ('intersects', 'within', 'contains', etc.). output_path: Optional path to save the result. Returns: Dictionary with status, message, and output info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| left_path | Yes | ||
| right_path | Yes | ||
| how | No | inner | |
| predicate | No | intersects | |
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||