Skip to content
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

feat(config): Add resizeKernel into the config tileset then disable fastShrinkOnLoad. BM-1146 #3377

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

Wentao-Kuang
Copy link
Contributor

Motivation

As raster Topo map got edge effects on low zoom levels usually below zoom 6, like following.
image

We have tests that with output resize kernel of mitchell and disable the fastShrinkOnLoad for lower scales levels will fix this problem.
image

Modifications

  • Add the resiseKernel setting in the config bundle, so that we can bundle it into server.

  • disable fastShrinkOnLoad for the resize.scaleless than 0.125.

  • Not fix yet: The virtual tileset for topo-raster-50k and topo-raster-250k won't fix as we can't propagate the resize kernel from combined tileset -> imagery config -> virtual tileset. Unless we add optional resizeKernal property for imagery config.

Verification

Local test.
image

@Wentao-Kuang Wentao-Kuang requested a review from a team as a code owner December 5, 2024 02:24
@tawera-manaena
Copy link
Contributor

@blacha - We thought about how to carry through a preset value from the tileset.json into this part of the code.

pipeline.webp({ preset: <e.g "text">, lossless: true, quality: 100, alphaQuality: 100 })

But haven't figured out a clean way to do it.

@tawera-manaena tawera-manaena changed the title feat(config): Add resizeKernel into the config tileset then disable fastShrinkOnLoad. feat(config): Add resizeKernel into the config tileset then disable fastShrinkOnLoad. BM-1146 Dec 5, 2024
@blacha blacha added this pull request to the merge queue Dec 5, 2024
Merged via the queue into master with commit bd3357e Dec 5, 2024
11 of 12 checks passed
@blacha blacha deleted the feat/support-resizekernel branch December 5, 2024 20:57
Wentao-Kuang added a commit that referenced this pull request Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants