You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hillshade layer rendered with the default built-in style. All cells of value 0 gets rendered as transparent pixel in the resulting png file.
The desired output would be a rendering on which we could preserve black value and still get transparent background where cell value is nodata.
It looks like it can be a configuration issue with the color ramp application. Try the clamp-with-color = true setting in the layer.styles definitions!
Hillshade layer rendered with the default built-in style. All cells of value 0 gets rendered as transparent pixel in the resulting png file.
The desired output would be a rendering on which we could preserve black value and still get transparent background where cell value is nodata.
It seems that this bug is associated with the way renderPng assigns transparency to some bits on the 8-bit value range, including 0 (black).
See: https://github.com/locationtech/geotrellis/blob/master/raster/src/main/scala/geotrellis/raster/render/PngRenderMethods.scala#L56
https://github.com/geotrellis/geotrellis-server/blob/develop/ogc/src/main/scala/geotrellis/server/ogc/style/ColorRampStyle.scala
The text was updated successfully, but these errors were encountered: