mapshader.transforms.polygon_to_line#

mapshader.transforms.polygon_to_line(gdf, geometry_field='geometry')[source]#

Convert geometry type from polygon to line.

Parameters:
  • gdf (geopandas.GeoDataFrame) – The vector data.

  • geometry_field (str, default=geometry) – The geometry field name.

Returns:

gdf – The converted data.

Return type:

geopandas.GeoDataFrame