get_footprint#
- get_footprint(ds: Union[str, tuple, DatasetReader]) GeoDataFrame [source]#
Get real footprint of the product (without nodata, in french == emprise utile)
>>> raster_path = "path/to/raster.tif" >>> footprint1 = get_footprint(raster_path) >>> # or >>> with rasterio.open(raster_path) as ds: >>> footprint2 = get_footprint(ds) >>> footprint1 == footprint2
- Parameters:
ds (PATH_ARR_DS) – Path to the raster, its dataset, its
xarray
or a tuple containing its array and metadata- Returns:
Footprint as a GeoDataFrame
- Return type:
gpd.GeoDataFrame