Skip to content

[Question] Spatial buffers? #124

@idantene

Description

@idantene

We've noticed that when using odc-stac with e.g.

query = stac_client.search(collections=["sentinel-2-l2a"],
                           bbox=wgs_bbox, datetime=[start_time, end_time],
                           limit=20)
items = query.item_collection()
stack = stac_load(items, bands=bands,
                  resolution=resolution, crs=f"EPSG:{epsg}", groupby="solar_day",
                  bbox=wgs_bbox, chunks={"x": -1, "y": -1}, stac_cfg=STAC_CFG,
                  fail_on_error=fail_on_errors)

We end up getting a slightly larger bounding box then the original bounding box (after converting from WGS to the desired CRS).
I wonder if this is intentional, and/or if there are explicit buffers in how STAC works? Or is it simply due to inaccuracies in WGS84 vs local projection?

When we later stitch several geotiffs together, this is not a particular concern, since the pixels overlap anyway and their values are identical. But when we ingest this data to an indexed database, we end up with duplicate errors that need to be handled 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions