Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_stac_collection #377

Closed
jdries opened this issue Jul 8, 2022 · 3 comments · Fixed by #413
Closed

load_stac_collection #377

jdries opened this issue Jul 8, 2022 · 3 comments · Fixed by #413
Milestone

Comments

@jdries
Copy link
Contributor

jdries commented Jul 8, 2022

Proposed Process ID: load_stac_collection

Context

An openEO backend now only supports predefined collections, but properly configured STAC collections can also be loaded. This avoids the need for static config, and simplifies use cases like running an openEO backend out of the box.

There's a few bigger questions here:

  • How will we deal with authentication headers? Can we do something generic?
  • Would it be useful to be able to override collection metadata? This would provide a workaround for catalogs that don't provide sufficient metadata, like the openeo:gsd values to determine resolution per band.

Summary

Loads a collection from a STAC catalog.

Description

Loads a collection from a STAC catalog by its id and returns it as a processable data cube. The data that is added to the data cube can be restricted with the parameters spatial_extent, temporal_extent, bands and properties.

Parameters

(copy some from load_collection/load_result

collection_id

Optional: no

Description

The STAC collection id to use when querying the catalog

Data Type

string

access_token

Optional: yes

Description

Some catalogs may require an authorization header to be sent along with requests, both for catalog access and for data access.

Data Type

string

Return Value

Description

A data cube for further processing. The dimensions and dimension properties (name, type, labels, reference system and resolution) correspond to the collection's metadata, but the dimension labels are restricted as specified in the parameters.

Data Type

raster-cube

Categories (optional)

  • Cubes
  • Import
@m-mohr
Copy link
Member

m-mohr commented Jul 19, 2022

Looks pretty similar to load_result, which also allows loading via HTTP from STAC.

Question: collection_id is unclear to me - shouldn't that be a link to a STAC resource instead?

How will we deal with authentication headers? Can we do something generic?

I assume with access_token you mean Bearer token in the HTTP headers? STAC has no pre-defined security mechanism, so we can likely only go for tokens via HTTP Headers and/or query parameters.

Would it be useful to be able to override collection metadata?

Not sure. I assume normal users would not know what is missing so this would be a very technical solution that requires going through support usually.

@jdries
Copy link
Contributor Author

jdries commented Mar 14, 2023

@LukeWeidenwalker this would be the basis for the 'User collections' concept right?

@m-mohr m-mohr modified the milestones: future, 2.0.0 Mar 14, 2023
@m-mohr
Copy link
Member

m-mohr commented Mar 14, 2023

API keys can be provided via the URL as query parameters.

Later, we can discuss an option where you can pass an object with headers to load_stac for authentication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants