swn.file.gdf_to_shapefile#
- swn.file.gdf_to_shapefile(gdf, shp_fname, **kwargs)#
Write any GeoDataFrame to a shapefile.
This is a workaround to the to_file method, which cannot save GeoDataFrame objects with other data types, such as set. It also has mappings between internal names and 10-character versions required for shapefiles.
- Parameters:
- gdfgeopandas.GeoDataFrame
GeoDataFrame to export
- shp_fnamestr
File path for output shapefile
- kwargsmapping
Keyword arguments passed to to_file and to fiona.open
- Returns:
- None