Skip to content

tif "footprints" are actually bounding boxes - Recalculate footprints to exclude no data values #2

@NewGraphEnvironment

Description

@NewGraphEnvironment

https://stactools.readthedocs.io/en/stable/api.html#stactools.core.utils.raster_footprint.RasterFootprint.footprint

currently our "footprints" are actually bounding boxes which I am uncertain whether we are reading from metadata or calculating with our stac-item-create script in https://github.com/NewGraphEnvironment/stac_dem_bc/blob/main/stac_create_item.qmd

we actually would prefer to exclude the nodata values

this actually does not matter in QGIS currently though as it appears to be using "bounding boxes" as the "footprint" (vs the "geometry")

tested by altering the geometry of a couple of json manually using above function (takes almost a minute per raster with code in the file linked here!!!)

Changing the "geometry" did not change the "footprint" in QGIS (yet).

Image Image

this is actually a diff area but you get the idea
Image

Image

doesn't matter if we update the native crs properties either...

Image

If the cogs have overviews it would make getting the footprints remotely much faster

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions