mapshader.core.get_source_data#
- mapshader.core.get_source_data(source: MapSource, simplify=None)[source]#
Get MapSource data and return as dict or GeoDataFrame depending on the geometry type.
- Parameters:
source (mapshader.sources.MapSource) – The input datasource.
simplify (int, default=None) – Get the simplified representation of each geometry according to the toleranced distance.
- Returns:
gdf – The Mapsource data
- Return type:
GeoDataFrame or dict