get_raster_shape

eolab.georastertools.processing.vector.get_raster_shape(raster: Path | str, output: Path | str | None = None, driver: str = 'GeoJSON') GeoDataFrame[source]

Extract the raster extent (shape where raster values are not masked)

Parameters:
  • raster (str or Path) – Raster image

  • output (str or Path, optional, default=None) – File where to save the shape geom If None, nothing written to disk (only in memory)

  • driver (str, optional, default=GeoJSON) – Driver to write the output

Returns:

The geometries in the raster CRS

Return type:

gpd.GeoDataFrame