Open-EO / openeo-python-client

Python client API for OpenEO
https://open-eo.github.io/openeo-python-client/
Apache License 2.0
143 stars 36 forks source link

metadata is None after `aggregate_spatial` #516

Open VincentVerelst opened 6 months ago

VincentVerelst commented 6 months ago

After applying aggregate_spatial to a Rastercube, the resulting Vectorcube does not contain any metadata anymore.

soxofaan commented 5 months ago

This is not as straightforward as hoped, as some vector cubes details are not settled yet. But maybe there are some quick wins already possible without having to over-engineer a general solution, so:

what do you want to use the metadata for? Any particular fields, e.g. you just want the band names?

VincentVerelst commented 5 months ago

Yes, having the band names would be the most important.

soxofaan commented 5 months ago

related to https://github.com/Open-EO/openeo-python-client/issues/464 https://github.com/Open-EO/openeo-python-client/issues/425 https://github.com/Open-EO/openeo-python-client/issues/527

jdries commented 5 months ago

I would say aggregate_spatial preserves band names when going from raster to vector, so can we just copy that part of the metadata? Maybe @VincentVerelst can prepare a PR for that?