stac-extensions / storage

Provides additional fields relating to how the asset is stored in the cloud
Apache License 2.0
5 stars 0 forks source link

Can the extension be used in link #21

Open emmanuelmathot opened 1 year ago

emmanuelmathot commented 1 year ago

We have several use cases where a STAC object (Catalog, Collection or Item) would link to another STAC catalog hosted on another platform. Typically, the output of OGC API process could be a collection with a link to the STAC catalog of the results saved on a custom S3. In this case, we would need information on the S3 storage platform. Example

{
    "id": "548c86e3-3f4e-4a9f-9d2e-056e10825a13",
    "stac_version": "1.0.0",
    "stac_extensions": [
        "https://stac-extensions.github.io/storage/v1.0.0/schema.json"
    ],
    "links": [
        {
            "type": "application/json",
            "rel": "self",
            "title": "Collection for processing execution 548c86e3-3f4e-4a9f-9d2e-056e10825a13",
            "href": "https://ades-01.terradue.com/ogc-api/processes/v1/548c86e3-3f4e-4a9f-9d2e-056e10825a13"
        },
        {
            "type": "application/application/json",
            "title": "Results STAC Catalog",
            "href": "s3://a-bucket/548c86e3-3f4e-4a9f-9d2e-056e10825a13/catalog.json",
            "storage:platform": "OTHER",
            "storage:region": "fr-par",
            "storage:requester_pays": false,
            "storage:tier": "Standard",
            "storage:endpoint": "https://s3.fr-par.scw.cloud"
        }
    ],
    "type": "Collection",
    "extent": {
        "spatial": {
            "bbox": [
                [
                    105.59583,
                    -6.7233333,
                    107.97361,
                    -5.2877778
                ]
            ]
        },
        "temporal": {
            "interval": [
                [
                    "2017-03-18T11:14:54Z",
                    "2018-12-26T11:15:08Z"
                ]
            ]
        }
    },
    "keywords": [],
    "assets": {},
    "license": "proprietary",
    "description": "Results for processing execution 548c86e3-3f4e-4a9f-9d2e-056e10825a13",
    "title": "Results for processing execution 548c86e3-3f4e-4a9f-9d2e-056e10825a13"
}

So the extension could be used in links to indicate information about link storage.

m-mohr commented 6 months ago

I think nothing prevents us from allowing this for Link Objects.

m-mohr commented 4 months ago

Please review the PR for version 2 that is meant to solve this issue: #24 @emmanuelmathot