earthpulse / eotdl

Earth Observation Training Datasets
https://eotdl.com
MIT License
17 stars 6 forks source link

EOTDL STAC API #136

Open juansensio opened 7 months ago

juansensio commented 7 months ago

Create wrapper around geodb STAC API.

Examples:

https://geodb.openeo.dev.brockmann-consult.de/collections/stac_test~es_ai_challenge_test/items https://geodb.openeo.dev.brockmann-consult.de/collections/stac_test~_train_tier_1_source/items

thomasstorm commented 7 months ago

We could use the openeo library: https://github.com/Open-EO/openeo-python-client

We can then open and use the geoDB STAC catalog like this:

import openeo
connection = openeo.connect(base_url)
connection.capabilities()
connection.list_collection_ids()
connection.describe_collection('stac_test~_train_tier_1_source')
juansensio commented 7 months ago

Sorry, instead of a wrapper I ment more like a proxy.

Redirecting calls like

https://geodb.openeo.dev.brockmann-consult.de/collections/stac_test~es_ai_challenge_test/items

to

https://api.eotdl.com/stac/collections/stac_test~es_ai_challenge_test/items

On top of which the openeo library or any other STAC wrapper can connect to.