I wrote an xml in Standard Layer Descriptor for GeoServer, with the objective to map a satellite image with discrete values. I wrote:
< ColorMap type="intervals">
< ColorMapEntry color="#000000" quantity="0" label="b"/>
< ColorMapEntry color="#00FF00" quantity="10" label="c"/>
< ColorMapEntry color="#FFFF00" quantity="20" label="d"/>
< /ColorMap>
The problem is that a value corresponds to a color set in a previous line, for example the pixel value 10 corresponds to #000000 color (but this color has to corresponds to value 0.)