linz / basemaps

NZ’s authoritative and open digital basemap service for LINZ and the public.
https://basemaps.linz.govt.nz
Other
92 stars 16 forks source link

fix(tiler-sharp): clamp elevation to the bounds of terrain rgb BM-1028 #3274

Closed blacha closed 3 months ago

blacha commented 3 months ago

Motivation

Very small height values are overflowing terrain rgb, eg the Mariana trench which cause rendering artifacts.

image

Modification

clamps the values of terrain rgb to the possible pixel ranges (0,0,0 -> 255,255,255)

Checklist

If not applicable, provide explanation of why.