Ticket #3302 (closed feature: fixed)
Post URL for GetMap request in WMSCapabilities Format
| Reported by: | jachym | Owned by: | tschaub |
|---|---|---|---|
| Priority: | major | Milestone: | 2.11 Release |
| Component: | Format.WMSCapabilities | Version: | 2.10 |
| Keywords: | WMS, Post, Get | Cc: | |
| State: | Review |
Description
When I call some WMS service for GetCapabilities (e.g. http://portal.ingr.briseide.eu/CCSS_MAP_WMS/wmservice.aspx) and as result, I get
...
<GetMap>
<Format>image/png</Format>
<Format>image/jpeg</Format>
<Format>image/svg+xml</Format>
<DCPType>
<HTTP>
<wms:Get>
<wms:OnlineResource xlink:href="http://portal.ingr.briseide.eu/CCSS_MAP_WMS/service.svc/get?" xlink:type="simple"/>
</wms:Get>
<wms:Post>
<wms:OnlineResource xlink:href="http://portal.ingr.briseide.eu/CCSS_MAP_WMS/service.svc/post" xlink:type="simple"/>
</wms:Post>
</HTTP>
</DCPType>
</GetMap>
...
And let it parse with OpenLayers.Format.WMSCapabilities,
getmap:
formats: Array[3]
href: "http://portal.ingr.briseide.eu/CCSS_MAP_WMS/service.svc/post"
resulting object has only one 'href' attribute
capability.request.getmap.href
Which corresponds to the URL taken from the Post node (which is parsed later, than the Get node).
This patch will modify the capability.request.getmap object, so it takes two new attributes, post and get, both with href attribute.
At the and, capability.requeyst.getmap.href will always get URL from the Get node. Result
getmap:
formats: Array[3]
get:
href: "http://portal.ingr.briseide.eu/CCSS_MAP_WMS/service.svc/get?"
href: "http://portal.ingr.briseide.eu/CCSS_MAP_WMS/service.svc/get?"
post:
href: "http://portal.ingr.briseide.eu/CCSS_MAP_WMS/service.svc/post"
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

