We are using SLD to render raster data. The SLD looks like:

<ColorMap type="intervals">
    <ColorMapEntry color="#FFFFFF" label="-1" quantity="-1"/>
  
   <ColorMapEntry color="#FFFFE5" label="0.0" quantity="0"/>
  <ColorMapEntry color="#FFF8C3" label="0.1" quantity="0.1"/>

   ...

</ColorMap>

It means:
   class 1: [pixel] >= -1 AND [pixel] < 0 with color ffffff
   class 2: [pixel] >= 0 AND [pixel] < 0.1 with color ffffe5

   class 3: [pixel] >= 0.1 AND [pixel] < 0.2 with color fff8c3


We can use the request, "GetLegendGraphic", to get a legend 
(color bar) which has the lower value being on top of the legend image, 
and the bigger value is on bottom of the legend image. 

Generally, the scientific guys hope the large number being on top of the legend 
image. Is there a way to invert the legend?

Thanks a lot.                                     
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to