overlay_gpd
Merge and analyze two geospatial datasets using specified overlay methods ('intersection', 'union', etc.) and save the results for detailed geospatial insights.
Instructions
Overlay two GeoDataFrames using geopandas.overlay.
Args:
gdf1_path: Path to the first geospatial file.
gdf2_path: Path to the second geospatial file.
how: Overlay method ('intersection', 'union', 'identity', 'symmetric_difference', 'difference').
output_path: Optional path to save the result.
Returns:
Dictionary with status, message, and output info.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
gdf1_path | Yes | ||
gdf2_path | Yes | ||
how | No | intersection | |
output_path | No |
Input Schema (JSON Schema)
{
"properties": {
"gdf1_path": {
"title": "Gdf1 Path",
"type": "string"
},
"gdf2_path": {
"title": "Gdf2 Path",
"type": "string"
},
"how": {
"default": "intersection",
"title": "How",
"type": "string"
},
"output_path": {
"default": null,
"title": "Output Path",
"type": "string"
}
},
"required": [
"gdf1_path",
"gdf2_path"
],
"title": "overlay_gpdArguments",
"type": "object"
}