-
Notifications
You must be signed in to change notification settings - Fork 17
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
result_meta dimension in aggregate_spatial #356
Comments
also related to the discussion around #341 (comment) |
Yes, I also stumbled across this recently and it needs to be rephrased based also on the vector cube definition later. |
with the difference, I think, that the "result" and "band" dimension should be separate, instead of flattened as in that example |
How should that work? You did argue above that this doesn't work if I understood it correctly? |
It's like my original example, but one additional dimension: start from 3D raster cube: (x, y, bands)
|
The devtelco of this afternoon led me to this " total_count and valid_count" feature of aggregate_spatial I was not aware of.
openeo-processes/aggregate_spatial.json
Line 81 in b81e96b
I'm not sure this makes sense: you can not just "add a new dimension" to append metadata
For example, assume the input raster cube is a 2D (x,y) raster cube
Purely looking at the aggregation results, the output is also a 2D vector cube with a vector dimension (with a label for each geometry) and a "result" dimension (with just a single item, e.g. label "aggregation"). Attempt to visualize:
First observation: the "result" dimension is actually not necessary, the result could just be a 1D vector cube.
Now about the result_meta dimension and its labels total_count and valid_count. If you simply "add" this dimension, then you get a 3D vector cube, with dimensions:
but your aggregations are lost here: at what coordinates in this cube is the original aggregation stored? This result cube has only metadata.
I think what is intended is that total_count and valid_count should be new labels in the "result" dimension.
So the "result" dimension would have labels "aggregation", "total_count", "valid_count"
The text was updated successfully, but these errors were encountered: