Invalid Capabilities-Response

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Wed Jul 12 10:10:47 EDT 2006

> Hi there,
> I use Mapserver version 4.8.1 on a apache 2.0.55 (win XP)
> When i send a GetCapabilities-Request (version 1.1.0), i get 
> a invalid Capabilities-Response.
> In the Capabilities there is an element <GetLegendGraphic> 
> which is not allowed in version 1.1.0. This element is only 
> allowed in version 1.1.1 and higher.

Hi Mandy,

Thanks for the info.  I've looked at the DTDs, and you are correct.
GetLegendGraphic and GetStyles are NOT supported as XML elements in
1.1.0 (see DTD at:  If
I eliminate GetLegendGraphic and GetStyles elements, the XML is valid
again.  We'll have to omit this from the 1.1.0 output Capabilities

Keep in mind that, although we will now omit GetLegendGraphic from
MapServer's OGC:WMS 1.1.0 GetCapabilities response, we should still keep
the LegendURL in the capabilities, which points to GetLegendGraphic
requests; this is fine (just because it's not supported in Capabilities
XML doesn't mean we can't use it to offer up a legend image).

I've filed bug 1826 against this issue


More information about the mapserver-dev mailing list