Ticket #1298 (closed defect: fixed)
[WMS-Server] enable Attribution element in Capabilities XML
| Reported by: | tomkralidis | Owned by: | jmckenna@… |
|---|---|---|---|
| Priority: | high | Milestone: | 4.6 release |
| Component: | Documentation - MapServer | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
For WMS 1.1.1, Capabilitities XML allows for an optional 'Attribution' element,
which is described as follows:
(from http://schemas.opengeospatial.net/wms/1.1.1/capabilities_1_1_1.dtd)
<!-- Attribution indicates the provider of a Layer or collection of Layers.
The provider's URL, descriptive title string, and/or logo image URL may be
supplied. Client applications may choose to display one or more of these
items. A format element indicates the MIME type of the logo image located at
LogoURL. The logo image's width and height assist client applications in
laying out space to display the logo. -->
<!ELEMENT Attribution ( Title?, OnlineResource?, LogoURL? )>
<!ELEMENT LogoURL (Format, OnlineResource) >
<!ATTLIST LogoURL
width NMTOKEN #REQUIRED
height NMTOKEN #REQUIRED>
MapServer's existing metadata directives would already support the inclusion of
Attribution to mapwms.c, leveraging:
wms_service_onlineresource
wms_contactorganization
wms_logourl_href
wms_logourl_format
wms_logourl_width
wms_logourl_height
...when implemented, this will allow MapServer to reuse the existing metadata
and add another element to Capabilities metadata. Plus, it would provide for
capabilities parsers the ability to display an icon of the WMS, etc.
I have implemented this change in mapwms.c, line 1877. XML-wise, this change
shows up in the root Layer element, between BoundingBox and ScaleHint.
Change History
Note: See
TracTickets for help on using
tickets.
