Opened 18 years ago

Closed 17 years ago

#1826 closed defect (fixed)

[WMS-Server] Capabilities XML 1.1.0 outputs invalid elements

Reported by: tomkralidis Owned by: mapserverbugs
Priority: high Milestone:
Component: WMS Server Version: unspecified
Severity: normal Keywords:
Cc:

Description

(from Mandy Fleischhauer email on mapserver-users)

> 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.
> 

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: http://schemas.opengeospatial.net/wms/1.1.0/capabilities_1_1_0.dtd).  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 response.

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).

Change History (1)

comment:1 by tomkralidis, 17 years ago

Resolution: fixed
Status: newclosed

Fixed. GetLegendGraphic and GetStyles only appear in 1.1.1 and higher responses.

Note: See TracTickets for help on using tickets.