-
Notifications
You must be signed in to change notification settings - Fork 180
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
Remove Commons metadata / rework bands object #762
Comments
Some additional thoughts: The Commons extension served two purposes originally. One was to present users with what fields were the same across all Items in a Collection. As @cholmes points out the summaries extension now does that in a better way. Fields with a single value have a summary of one value, but can also includes summaries of all the fields. The other was to avoid redundancy. However, in practice there's really only a couple fields (with the exception of The additional issue with the I would propose two related changes:
I suspect @m-mohr might have a problem with this since he has a use case where he doesn't have Items, but in that case I'm wondering how you use the |
If you are exposing data as cloud API / service as Google and openEO do, you don't really want to expose the structure of the assets to users so that's why assets won't work well. What we do is to just specify the bands in the summaries as with all other fields. (+ openEO uses the data cube extension and bands are a dimension.) So, just having bands in assets is not ideal and we discussed last call that the "properties"/"summaries" should still include something if there's a field specified in the assets (like with gsd). Still thinking myself about the best solution... |
We talked about this on the 4/13 call and agreed that the bands in assets is not ideal, and the path forward is just to move the bands object to the collection level. The structure would stay the same, it'd be defined in the extension (so not something that confuses people who are using stac for non-eo purposes), and it would live as a top level catalog thing. There is precedence already for other extensions defining top level collection fields. |
I forgot about that yesterday: What happens for Items that don't have collections? Do they still list bands in properties? I'm just thinking about the use case Seth pushed earlier (single items) and I'm using now in openEO, too. That's basically what we added providers and license for in common metadata. Having bands only at the collection level would break the use case. Other than that, I'm very happy to remove Commons. It solves so many ugly issues... |
I thought Seth had been fine with breaking that use case when we got the single file STAC extension. Like to just have one file where you have a collection + item (though I forget if it ever achieved that goal). If we do want to support it I suppose we could just say that bands object can also be inserted at the properties level. |
So we can also remove license and providers from the common metadata? I like that... ;-)
Agreed. |
Yeah, I had thought we got there, though perhaps am misremembering, or maybe I dreamed it. |
After discussion this morning with @anayeaye @jbants and @m-mohr we came to a more flexible solution here for bands object. We're closing #785 without merging. eo:bands stays at the Item properties level, which makes it useful for eventual search or inclusion into summaries. With #760 the eo:bands can be specified for a specific asset, so the index referencing can be removed. If you want to specify what bands an asset has you don't reference another array you just define an array of those bands. Finally, we will issue a new proposal for extending the asset definitions to do something similar to the Commons extension that is getting removed, but in much more limited fashion. |
Just a note - whenever you do the commons extension removal be sure to remove this paragraph in the collection spec:
It's the second paragraph. Not sure how that got in there without even an indication that you need an extension to do this (unless I'm reading it wrong?). |
I guess we forgot to change this when moving this behavior from core to the extension. |
Opening an issue for discussion that came up on our last STAC call - considering removing the 'commons' extension. A few reasons came up:
The key thing to do is to figure out another way to handle the bands. I wonder if one option is to just make it something that can be added at the collection level?
The text was updated successfully, but these errors were encountered: