Open-EO / Open-EO/openeo-python-driver

chaining save_result does not work for JSON, CSV assets etc

Open
#261 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
12
Forks
8
Avg merge
6d 3h
Merged PRs (30d)
4

Description

save_result processes can be chained to output assets in multiple formats e.g.

(data_cube
  .save_result("GTiff")
  .save_result("netCDF")
  .download())

this works for images like GeoTIFF + netCDF but not for e.g. aggregate_spatial output in JSON + CSV.

Can be traced back to aliasing on this line where the last save_result node's format will override previous ones:

https://github.com/Open-EO/openeo-python-driver/blob/46b9acc7fdc7041e3240ee4d57dc60a446b5788f/openeo_driver/ProcessGraphDeserializer.py#L741

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at ProcessGraphDeserializer.py line 741 and trace how chained save_result nodes retain their output formats. Reproduce the aggregate_spatial JSON-plus-CSV chain and compare it with the working GeoTIFF-plus-netCDF example; done means each chained format remains available rather than being overridden by the last node.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.