revrt.utilities.raster.simplify_shapes#
- simplify_shapes(gdf, transform)[source]#
Simplify geometries to half of the raster cell size
- Parameters:
gdf (
geopandas.GeoDataFrame) – GeoDataFrame containing the geometries to simplify.transform (
affine.Affine) – Affine transform used to derive the raster cell size.
- Returns:
geopandas.GeoDataFrame– Inputgdfwith simplified geometries and empty features removed.