SLD - Legend - example

4391
1
03-13-2012 09:43 AM
Labels (1)
iragraffman
New Contributor II
Are there any examples, tutorials or links that explain how to use a Styled Layer Descriptor (SLD) to return a per-defined legend
graphic (png, gif) in a WMS service?

Thanks!
0 Kudos
1 Reply
YingqiTang
New Contributor
Hi,

The WMS Service help in ArcGIS Server Help has a sample GetLegendGraphic request

http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Communicating...

Basically you are calling GetLegendGraphic with SLD/SLD_BODY parameter, e.g.

http://myserver/arcgis/services/OGC/SanFrancisco/MapServer/WMSServer?Service=WMS&Request=GetLegendGr...

In request above you can adjust the size and format of the legend.

Thanks

Are there any examples, tutorials or links that explain how to use a Styled Layer Descriptor (SLD) to return a per-defined legend
graphic (png, gif) in a WMS service?

Thanks!
0 Kudos