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

Hierarchically organized STAC APIs #88

Open
moradology opened this issue Jan 31, 2022 · 5 comments
Open

Hierarchically organized STAC APIs #88

moradology opened this issue Jan 31, 2022 · 5 comments

Comments

@moradology
Copy link

moradology commented Jan 31, 2022

In the most recent release of the STAC API specification (i.e. v1.0.0-beta.5), two features have been added which imply a hierarchical representation of of STAC documents within STAC APIs: children and browseable. A recently added draft on stac_fastapi implements these features with an in memory representation of the hierarchy which defines behavior for both of these features.

In this draft, the hierarchy is specified separately from the ingested contents of the database. For instance, the data which defines the Joplin collection and its various related items is supplied via a json file and an environment variable which tells the server where a valid hierarchy definition can be located.

Assuming this structure is sufficient and desiring a more robust implementation which leverages the performance and benefits for implementers of other STAC libraries which might lean on pgstac, it would be great to push this information and associated behaviors down to postgres.

Below are some TODOs in the stac_fastapi draft which are next to functions/behavior which could likely find its home in pgstac

@moradology
Copy link
Author

@moradology
Copy link
Author

@moradology
Copy link
Author

Generate partially completed link json in postgres to avoid pulling all data from collections and catalogs: https://github.com/stac-utils/stac-fastapi/pull/336/files#diff-48c3b9c11c264e04cde80885bcab3d58d0a21f0e3e245e52c51e7893ee969ec7R103

@moradology
Copy link
Author

Add optional catalog argument to determine which collections should be included in search: https://github.com/stac-utils/stac-fastapi/pull/336/files#diff-48c3b9c11c264e04cde80885bcab3d58d0a21f0e3e245e52c51e7893ee969ec7R310-R311

@moradology
Copy link
Author

Add function to return all collection children (or simply all children?) for a given catalog: https://github.com/stac-utils/stac-fastapi/pull/336/files#diff-48c3b9c11c264e04cde80885bcab3d58d0a21f0e3e245e52c51e7893ee969ec7R375-R376

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

No branches or pull requests

1 participant