I have single band DEMs I'm trying to use in an ImageMosaic in GeoServer 2.11.2 that displays a black background color by default. I want that background color to go away and the default color ramping to range of displayed values to occur.
The default behavior is almost exactly what I want - when you zoom in, it scales the colors to the min/max of the dataset currently in view.
All I want to do is hide the background color of -9999.0 so that scaling isn't messed up by the nodata color. However all attempts to fix this don't seem to work.
-Setting InputTransparentColor and OutputTransparentColor cause rendering to fail with an error 'Unsupported data type'.
-Setting an SLD ColorMap that hides -9999.0 values 'works' but you need to then to specify the rest of the color ramp which I don't want to do because it needs to be dynamic. (So I don't want this answer).
-Setting an SLD ContrastEnhancement causes a NullPointerException
<ContrastEnhancement> <Normalize /> </ContrastEnhancement>
And trying to set VendorOptions inside the ContrastEnhancement Node doesn't validate.