Select to view content in your preferred language

ArcGIS 10 WMS and GetLegendGraphic Issue

3215
1
03-08-2011 04:44 AM
Labels (1)
DebasishSahu
New Contributor
Hi,

If I pass the SLD file as a parameter in GetLegendGraphic request the style is not getting applied . The legend image that gets returned is with the default style. The GetMap request though works fine with the given sld.

http://myserver/services/test/mapserver/WMSServer?TRANSPARENT=true&Layer=mylayer&FORMAT=image%2Fpng&...

Any ideas , why is it so ? Am I missing something out here ?

Thanks
Debasish
0 Kudos
1 Reply
TealHobson-Lowther
New Contributor

In ArcGIS, the GetLegendGraphic wms request requires the parameter 'STYLE' as opposed to 'STYLES'. See the 'Parameters of a WMS GetLegendGraphic Request' section on this page

So the proper request would be: 

http://myserver/services/test/mapserver/WMSServer?TRANSPARENT=true&Layer=mylayer&FORMAT=image%2Fpng&...

Given the length of time since this post, I doubt I will be able to help the OP. However, considering there are a couple thousand views from people investigating the same question, and I personally ran into it while investigating this feature, I thought I'd share. Hope it helps someone. 

0 Kudos