Skip to content

Deduce collection temporal extent from items #32

@kylebarron

Description

@kylebarron

In general, the temporal extent at the collection level for ongoing data sources has a start datetime but not an end datetime. For example, the Sentinel 2 L2A collection STAC has

"temporal": {
    "interval": [
        [
            "2015-06-27T10:25:31.456000Z",
            null
        ]
    ]
}

However when the underlying items are known, it's possible to put a bounds on both ends, which can be useful in situations like Landsat where there may be a two-week lag before the newest scenes are available in the bucket. In that case it would be helpful to know when the most recent Item that's available in a bucket is. It's my guess that since there's an index on the datetime field in Postgres, a max(datetime) query should be very fast?

Would you be interested in a PR to optionally deduce the collection interval on the fly from the underlying items?

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