Ticket #1262 (closed defect: fixed)
SERVICE=WMS vendor specific on GetMap and GetFeatureInfo
| Reported by: | doug@… | Owned by: | mapserverbugs |
|---|---|---|---|
| Priority: | high | Milestone: | 4.6 release |
| Component: | Documentation - MapServer | Version: | unspecified |
| Severity: | major | Keywords: | |
| Cc: | jmckenna@…, bartvde@… |
Description
A MapServer WMS service requires SERVICE=WMS on GetMap and GetFeatureInfo requests if the WFS server is also enabled, but this isn't part of the 1.1.1 WMS specification for these service types. It is required with GetCapabilities. Since it is a vendor-specific requirement, and won't be added automatically by compliant clients, it should be added to the auto generated OnlineResource hrefs for GetMap and GetFeatureInfo. Examples: http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WMS&REQUEST=GetCapabilities ... shows OnlineResource as: <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://dev1.dmsolutions.ca:80/cgi-bin/mswfs_gmap?"/></Get> ... but a compliant request like this doesn't work: http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?VERSION=1.1.1&REQUEST=getmap&layers=park,popplace&STYLES=&SRS=EPSG:4326&BBOX=-173.537,35.8775,-11.9603,83.8009&WIDTH=400&HEIGHT=300&FORMAT=image/png ... but this request does: http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=park,popplace&STYLES=&SRS=EPSG:4326&BBOX=-173.537,35.8775,-11.9603,83.8009&WIDTH=400&HEIGHT=300&FORMAT=image/png Workaround is to set the online resource in the metadata in your map file so that it includes SERVICE=WMS. I believe that the default OnlineResource in the GetCapabilities response should include the SERVICE=WMS. Easy fix.
Change History
Note: See
TracTickets for help on using
tickets.
