shapes_to_gdf

Contents

shapes_to_gdf#

shapes_to_gdf(shapes: Generator, crs: str) GeoDataFrame[source]#

Convert rasterio shapes to geodataframe

Parameters:
  • shapes (Generator) – Shapes from rasterio

  • crs – Wanted CRS of the vector. If None, using naive or origin CRS.

Returns:

Shapes as a GeoDataFrame

Return type:

gpd.GeoDataFrame