merge_shps

pydriosm.reader.merge_shps(paths_to_shp_files, path_to_merged_dir, method='geopandas')[source]

Merge multiple shapefiles.

Parameters
  • paths_to_shp_files (list) – list of absolute paths to shapefiles (in .shp format)

  • path_to_merged_dir (str) – absolute path to a directory where the merged files are to be saved

  • method (str) – the method used to merge/save .shp files; if 'geopandas' (default), use the geopandas.GeoDataFrame.to_file method, use shapefile.Writer otherwise

See the example for the function merge_layer_shps().