mapshader.transforms.to_spatialpandas#
- mapshader.transforms.to_spatialpandas(gdf: GeoDataFrame, geometry_field='geometry')[source]#
Convert a
geopandas.GeoDataFrame
tospatialpandas.GeoDataFrame
.- Parameters:
gdf (geopandas.GeoDataFrame) – The data source.
geometry_field (str) – Geometry field on GeoDataFrame
- Returns:
spatial_gdf
- Return type:
spatialpandas.GeoDataFrame