[mapserver-users] SLD and GetLegendGraphic for raster data

Peisheng Zhao zhaops at hotmail.com
Tue Nov 12 13:06:27 PST 2013


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. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131112/79ada9ae/attachment.htm>


More information about the MapServer-users mailing list