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

Adding assets to a collection #293

Closed
fabricebrito opened this issue Mar 28, 2021 · 1 comment · Fixed by #309
Closed

Adding assets to a collection #293

fabricebrito opened this issue Mar 28, 2021 · 1 comment · Fixed by #309

Comments

@fabricebrito
Copy link

The collection spec foresees the possibility to add assets to a STAC collection.

This issue reports the lack of methods to add assets to a STAC collection

@lossyrob
Copy link
Member

Thanks for reporting - this is work that needs to be done for the 1.0.0-RC1 upgrade, which is slated to happen over the next couple of months.

For now, if you need assets on collections you can take advantage of the Collection.extra_fields property on collection, which holds any fields that PySTAC doesn't parse into STAC metadata at the top level of the collection. If you add an "assets" key to that dict, it will be written out when you save the Collection.

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

Successfully merging a pull request may close this issue.

2 participants