ArcGIS 10 WMS and GetLegendGraphic Issue

2604
1
03-08-2011 04:44 AM
Labels (1)
Highlighted
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
Reply
0 Kudos
1 Reply
Highlighted
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. 

Reply
0 Kudos