merge_gpd
Combine attribute data from two shapefiles using database-style joins based on common columns, preserving geometry from the left file.
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 |