Skip to content

Fix color-relief display artifacts with nearest resampling - #1

Open
johnhuebbe wants to merge 1 commit into
Iconem:mainfrom
johnhuebbe:fix/color-relief-resampling
Open

Fix color-relief display artifacts with nearest resampling#1
johnhuebbe wants to merge 1 commit into
Iconem:mainfrom
johnhuebbe:fix/color-relief-resampling

Conversation

@johnhuebbe

Copy link
Copy Markdown

Problem

The MapLibre color-relief preview displayed repeated line/ring artifacts (although the exported GeoTIFF rendered correctly in QGIS)

The issue remained with different WSE interpolation modes, contour visibility, browsers, and server/client engines.

Fix

Set the color-relief layer's resampling property to nearest. This prevents bilinear texture resampling from introducing visible artifacts into the elevation display.

Tested locally with MapLibre GL JS 5.24.0. The artifacts disappeared, while the exported raster remained unchanged.

Screenshot of the problem:
SCR-20260822-sgkg-2

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.

1 participant