openeo-python-client icon indicating copy to clipboard operation
openeo-python-client copied to clipboard

method to convert CollectionMetadata to STAC json

Open jdries opened this issue 3 years ago • 3 comments

Need to improve the as_dict method on CollectionMetadata to generate proper and complete STAC metadata.

jdries avatar Nov 24 '22 11:11 jdries

I'm not sure what you mean here, as CollectionMetadata in the client has no as_dict method. And the class is basically just a wrapper around STAC(ish) metadata given to the constructor, with accessor methods and properties for common metadata items; it's not really a builder for metadata

soxofaan avatar Nov 24 '22 23:11 soxofaan

my bad, commits got lost, I now fixed it without requiring something in the client But anyway: for tests but also for user logs, it would be convenient that we can export our metadata into a standardized format. The most logical one being: https://github.com/stac-extensions/datacube

jdries avatar Nov 25 '22 07:11 jdries

indeed, we could indeed crank up STAC support/compatibility in a couple of places. Also related:

  • #133

soxofaan avatar Nov 28 '22 13:11 soxofaan