Hi all,
I am trying to style the NoData value for a published GeoTIFF layer with a ColorMap symbolizer, see an excerpt of the SLD below (https://i.imgur.com/moyBfSZ.png). The GeoTIFF has the NoData value set to 255.
Defining a color map entry in the SLD for the NoData value does not have any effect on the rendering (the NoData values stay transparent). However for my specific usecase it would be nice when setting the symbology in the SLD for the NoData value would override the transparency for NoData values. Does it make sense to try to do it this way (even if it is not possible at the moment) or is there a better way to style the nodata value on a per layer basis?
sld:RasterSymbolizer
<sld:ColorMap type=“values”>
<sld:ColorMapEntry color=“#000000” opacity=“1” quantity=“0” label=“0”/>
<sld:ColorMapEntry color=“#E6004D” opacity=“1” quantity=“1” label=“1”/>
<sld:ColorMapEntry color=“#FF0000” opacity=“1” quantity=“2” label=“2”/>
…
…
…
<sld:ColorMapEntry color=“#000000” opacity=“1” quantity=“250” label=“250”/>
<sld:ColorMapEntry color=“#000000” opacity=“1” quantity=“251” label=“251”/>
<sld:ColorMapEntry color=“#000000” opacity=“1” quantity=“252” label=“252”/>
<sld:ColorMapEntry color=“#000000” opacity=“1” quantity=“253” label=“253”/>
<sld:ColorMapEntry color=“#000000” opacity=“1” quantity=“254” label=“254”/>
<sld:ColorMapEntry color=“#FFFF73” opacity=“1” quantity=“255” label=“No data”/>
</sld:ColorMap>
sld:ContrastEnhancement/
</sld:RasterSymbolizer>
Cheers,
Anton
software developer@geocat
tel. +31 318 416 664