Skip to content

PB-1257: do not set default value for "nodata" with COGs#1344

Merged
pakb merged 1 commit intodevelopfrom
fix-PB-1257-data-driven-nodata-for-COGs
May 16, 2025
Merged

PB-1257: do not set default value for "nodata" with COGs#1344
pakb merged 1 commit intodevelopfrom
fix-PB-1257-data-driven-nodata-for-COGs

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented May 16, 2025

let the COG tell us if it has some nodata, and if nothing is found in the header just let it go through without transparency (aka data-driven nodata)

This caused issue when importing COGs such as this one https://s.geo.admin.ch/ahr56lxj9teb (black color from the map was used as no data, meaning labels and lines were rendered transparent)

Test link with COG mentioned above

Test link

@pakb pakb requested a review from schtibe May 16, 2025 10:09
@github-actions github-actions bot added the bug label May 16, 2025
@cypress
Copy link

cypress bot commented May 16, 2025

web-mapviewer    Run #5333

Run Properties:  status check passed Passed #5333  •  git commit dcb69c5afe: PB-1257: do not set default value for "nodata" with COGs
Project web-mapviewer
Branch Review fix-PB-1257-data-driven-nodata-for-COGs
Run status status check passed Passed #5333
Run duration 05m 21s
Commit git commit dcb69c5afe: PB-1257: do not set default value for "nodata" with COGs
Committer Pascal Barth
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 20
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 251
View all changes introduced in this branch ↗︎

Base automatically changed from fix-ci-test-flakiness to develop May 16, 2025 11:29
let the COG tell us if it has some nodata, and if nothing is found in the header just let it go through without transparency (aka data-driven nodata)

This caused issue when importing COGs such as this one https://s.geo.admin.ch/ahr56lxj9teb (black color from the map was used as no data, meaning labels and lines were rendered transparent)
@pakb pakb force-pushed the fix-PB-1257-data-driven-nodata-for-COGs branch from e287f6d to dcb69c5 Compare May 16, 2025 11:30
@pakb pakb requested a review from sommerfe May 16, 2025 11:31
@pakb pakb merged commit e68476f into develop May 16, 2025
9 checks passed
@pakb pakb deleted the fix-PB-1257-data-driven-nodata-for-COGs branch May 16, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants