Output to folder hierarchy
datadavev opened this issue · comments
STAC collections may themselves contain collections, which is a convenient way to gather exported resources and view with a stac-browser.
Task here is to save an export to a subfolder of a root folder, and provide a stac collection document in the root folder that links to the collection in the export folder. For example:
./data
stac.json.
export-1/
stac.json
some-data.json
some-data_geo.parquet
export-2/
stac.json
some-more-data.json
some-more-data_geo.parquet
The stac collection document in data/stac.json
might have contents something like:
{
"type": "Collection",
...
"links": [
{
"rel":"child",
"type":"application/json",
"title":"Some data",
"href":"export-1/stac.json"
},
{
"rel":"child",
"type":"application/json",
"title":"Some more data",
"href":"export-2/stac.json"
}
]
}
The source of this catalog provides an example of child collections: https://radiantearth.github.io/stac-browser/#/external/raw.githubusercontent.com/eco4cast/neon4cast-ci/main/catalog/catalog.json?.language=en