[mapserver-users] GetLegendGraphics use

Peisheng Zhao zhaops at hotmail.com
Thu Aug 11 12:08:24 EDT 2011


Here is a SLD example.

<ColorMap>
    <ColorMapEntry color="#0000ff" quantity="-5" label="-5"/>
    <ColorMapEntry color="#4040ff" quantity="-4"/>
    <ColorMapEntry color="#8080ff" quantity="-3" label="-3"/>
   <ColorMapEntry color="#c0c0ff" quantity="-2"/>
   <ColorMapEntry color="#ffffff" quantity="-1" label="-1"/>
   <ColorMapEntry color="#ffffff" quantity="0"/>
   <ColorMapEntry color="#ffc0c0" quantity="1" label="1"/>
   <ColorMapEntry color="#ff8080" quantity="2"/>
   <ColorMapEntry color="#ff4040" quantity="3" label="3"/>
   <ColorMapEntry color="#ff0000" quantity="4"/>
   <ColorMapEntry color="#000000" quantity="5" label="5"/>
</ColorMap>

Then you can use GetLegendGraphics to get a legend.

Date: Thu, 11 Aug 2011 17:16:42 +0200
From: to.tonton at gmail.com
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] GetLegendGraphics use

hello 
i'd like to know how to use GetLegendGraphics in a sld file to obtain legend from ?

Tonton


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110811/67caf464/attachment.html


More information about the mapserver-users mailing list