mapshader.transforms.build_vector_overviews#

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

Reduce the vector data resolution.

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

  • levels (dict) – The factors and values to be used when reducing the data resolution.

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

Returns:

overviews – The reduced resolution vector data.

Return type:

geopandas.GeoDataFrame