merge_gpd
Merge two shapefiles by joining on shared attribute columns with left, right, outer, or inner joins. Preserves geometry from the left shapefile and outputs a single combined shapefile.
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 |
|---|---|---|---|
| shapefile1_path | Yes | ||
| shapefile2_path | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||