sjoin_gpd
Perform spatial joins between two geospatial datasets using specified join type and spatial predicate. Save the output to a defined path for further geospatial analysis.
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 |
---|---|---|---|
how | No | inner | |
left_path | Yes | ||
output_path | No | ||
predicate | No | intersects | |
right_path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"how": {
"default": "inner",
"title": "How",
"type": "string"
},
"left_path": {
"title": "Left Path",
"type": "string"
},
"output_path": {
"default": null,
"title": "Output Path",
"type": "string"
},
"predicate": {
"default": "intersects",
"title": "Predicate",
"type": "string"
},
"right_path": {
"title": "Right Path",
"type": "string"
}
},
"required": [
"left_path",
"right_path"
],
"title": "sjoin_gpdArguments",
"type": "object"
}