Skip to content

extend raster:bands if no bands - #555

Merged
bossie merged 3 commits into
masterfrom
863-round-trip-nodata_add-if-no-bands
Oct 30, 2026
Merged

bossie merged 3 commits into
masterfrom
863-round-trip-nodata_add-if-no-bands

Conversation

@bossie

@bossie bossie commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

@bossie bossie linked an issue Oct 30, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The condition can create an empty raster:bands array when bands is empty and nodata or data_type is set, violating the raster extension’s nonempty-array requirement.

1 open issue
What changed in this PR

This PR supports nodata round-tripping by enriching existing raster-band metadata even when spectral band metadata is absent.

Changes:

  • Move legacy raster:bands enrichment outside the spectral-band check.
  • Add raster-band metadata to the dummy NetCDF asset.
  • Update job-result expectations across API versions and signed URL scenarios.
File Description
tests/​test_views.py Expect NetCDF raster-band nodata in job results.
openeo_driver/​dummy/​dummy_backend.py Add an empty raster-band entry to the NetCDF fixture.
openeo_driver/​backend_/​_geopyspark.py Enrich existing raster bands independently of spectral bands.

Review effort: Balanced

Comment thread openeo_driver/backend_/_geopyspark.py Resolved
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@bossie
bossie merged commit 29c543a into master Oct 30, 2026
2 of 6 checks passed
@bossie
bossie deleted the 863-round-trip-nodata_add-if-no-bands branch October 30, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Round trip nodata

2 participants