Skip to content

PB-1257: show COG with native resolution (no interpolation), fix LUBIS COG not loading/showing up#1569

Merged
pakb merged 5 commits intodevelopfrom
feat-PB-1257-cog-native-resolution
Feb 24, 2026
Merged

PB-1257: show COG with native resolution (no interpolation), fix LUBIS COG not loading/showing up#1569
pakb merged 5 commits intodevelopfrom
feat-PB-1257-cog-native-resolution

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented Feb 20, 2026

replaces #1563 so that the CI can build it (and we can have a test link)

Native resolution (no interpolation/aliasing of COG data)

Before

map.geo.admin.ch with sample COG

image

After

Test link with sample COG

image

Issue loading (some) LUBIS COGs

Before

map.geo.admin.ch with LUBS COGs
image

After

Test link with LUBIS COGs
image

Standard test link

Test link

@cypress
Copy link

cypress bot commented Feb 20, 2026

web-mapviewer    Run #6474

Run Properties:  status check passed Passed #6474  •  git commit f75fba99a5: PB-1257: remove (now) unsupported unit tests
Project web-mapviewer
Branch Review feat-PB-1257-cog-native-resolution
Run status status check passed Passed #6474
Run duration 07m 20s
Commit git commit f75fba99a5: PB-1257: remove (now) unsupported unit tests
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 261
View all changes introduced in this branch ↗︎

@hansmannj
Copy link
Member

@pakb : to me it seems, using the test link, that only integer values for z are around, when zooming randomly and checking the URL params afterwards.
Might be more noticeable on mobile devices when zooming, and also could potentially affect share links, with non-integer z-values?

@pakb pakb force-pushed the feat-PB-1257-cog-native-resolution branch from 3221fb8 to 37bdef5 Compare February 23, 2026 07:45
@pakb pakb changed the title COG displayed with native resolution [PB-1257] show COG with native resolution (no interpolation), fix LUBIS COG not loading/showing up Feb 23, 2026
@pakb pakb changed the title [PB-1257] show COG with native resolution (no interpolation), fix LUBIS COG not loading/showing up PB-1257: show COG with native resolution (no interpolation), fix LUBIS COG not loading/showing up Feb 23, 2026
@pakb pakb force-pushed the feat-PB-1257-cog-native-resolution branch from 37bdef5 to fff64b0 Compare February 23, 2026 10:15
@pakb pakb requested review from davidoesch and hansmannj February 23, 2026 10:30
@pakb pakb force-pushed the feat-PB-1257-cog-native-resolution branch 3 times, most recently from f8527f5 to 4293a55 Compare February 23, 2026 12:32
@davidoesch
Copy link
Contributor

Testlink?

@pakb
Copy link
Contributor Author

pakb commented Feb 23, 2026

Testlink?

in the description of the PR you can find a couple of them

davidoesch and others added 4 commits February 23, 2026 15:30
Disabling interpolation for COG layers: Beacuse we should always show the native resolution, and not interpoalte it.
The current WebGLTileLayer does not set the interpolate option. To disable interpolation, modify OpenLayersCOGTiffLayer.vue: You need to also disable interpolation at the source level. The vanilla OL solution : https://codesandbox.io/p/devbox/cog-forked-49q956
and others libs with it.

Having OpenLayers 10.6+ fixes the issue we had with some LUBIS COGs not loading properly

Updating some TS tooling has started raising new error regarding null-check, so I've added this `strictNullChecks: false` rule/setting so that I don't have to change the code too much (and collide with the TS branch)
going back and forth between the `develop-typescript`/pinia branch and the `develop` branch can lead to many install issues, and I wanted to be able to clean install from time to time.
So here is a little script to help exactly do that, reset/clear all PNPM packages and version, and re-install everything from scratch
@pakb pakb force-pushed the feat-PB-1257-cog-native-resolution branch from 4293a55 to 0457a80 Compare February 23, 2026 14:31
unit tests that were covering part of the store are colliding with the latest lib update, and aren't running anymore.
They raise some obscure error regarding a filename that is invalid (although none of them are using any filename variable...)

As these unit tests are going to be replaced in the near future with their Pinia equivalent on the develop-typescript branch, I'm removing them for now.
@pakb pakb force-pushed the feat-PB-1257-cog-native-resolution branch from 0457a80 to f75fba9 Compare February 23, 2026 15:35
Copy link
Member

@hansmannj hansmannj left a comment

Choose a reason for hiding this comment

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

Thanks a lot @pakb , LGTM 👍

@pakb pakb merged commit 19847b3 into develop Feb 24, 2026
6 checks passed
@pakb pakb deleted the feat-PB-1257-cog-native-resolution branch February 24, 2026 07:39
@davidoesch
Copy link
Contributor

FYI: Checked several 10m and also 10cm RGB's they all worked fine. Thanks. LGTM

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.

3 participants