merge_gpd
Merge two shapefiles using common attribute columns to combine data without altering geometries. Supports 'left', 'right', 'outer', and 'inner' joins. Specify output path and join parameters for precise data integration.
Instructions
Merges two shapefiles based on common attribute columns,
This function performs a database-style join, not a spatial join.
Args:
left_shapefile_path: Path to the left shapefile. The geometry from this file is preserved.
right_shapefile_path: Path to the right shapefile to merge.
output_path: Path to save the merged output shapefile.
how: Type of merge. One of 'left', 'right', 'outer', 'inner'. Defaults to 'inner'.
on: Column name to join on. Must be found in both shapefiles.
left_on: Column name to join on in the left shapefile.
right_on: Column name to join on in the right shapefile.
suffixes: Suffix to apply to overlapping column names.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
output_path | Yes | ||
shapefile1_path | Yes | ||
shapefile2_path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"output_path": {
"title": "Output Path",
"type": "string"
},
"shapefile1_path": {
"title": "Shapefile1 Path",
"type": "string"
},
"shapefile2_path": {
"title": "Shapefile2 Path",
"type": "string"
}
},
"required": [
"shapefile1_path",
"shapefile2_path",
"output_path"
],
"title": "merge_gpdArguments",
"type": "object"
}