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

Add API+CLI ability to add the raster extension (and maybe other extensions) to an item #196

Open
gadomski opened this issue Aug 30, 2021 · 5 comments
Labels
cli Command line interface enhancement New feature or request

Comments

@gadomski
Copy link
Member

Is your feature request related to a problem? Please describe.
Many useful Item attributes, especially extension attributes, are trivial to construct by (e.g.) reading the metadata of a raster file.

Describe the solution you'd like
We should provide a function, available via both the API and the CLI, to add common extensions to an item by reading the metadata from an asset.

@gadomski gadomski added the enhancement New feature or request label Aug 30, 2021
@volaya
Copy link
Contributor

volaya commented Sep 13, 2021

@gadomski I want to start working on this, but I was thinking that there should be some module in pystac to handle the raster extension stuff (like we have for other extensions, under pystac/extensions). I haven't seen any issue open in there about this. Should I put all the logic for the raster extension in stactools and then we discuss about moving part of it to pystac if that's better?

@volaya
Copy link
Contributor

volaya commented Sep 13, 2021

Nevermind, I had an older version of pystac, and I have just seen that pystac already has the raster extension support. Sorry for the noise

@cholmes
Copy link
Contributor

cholmes commented Sep 13, 2021

This seems similar to #159. I'll close that one.

@kylebarron
Copy link
Contributor

Note there might be some overlap between this and rio-stac: https://github.com/developmentseed/rio-stac/, which adds the raster extension.

@cholmes
Copy link
Contributor

cholmes commented Sep 14, 2021

Thanks for mentioning that @kylebarron. I think the user flows are a bit different - I suspect this will mostly be used to take an existing STAC collection or item and add the raster info to each item, while rio stac lets you create a new item with raster.

But potentially may be able to share some code between the two.

@gadomski gadomski added the cli Command line interface label Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Command line interface enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants