[OpenLayers-Trac] [OpenLayers] #3302: Post URL for GetMap request in WMSCapabilities Format

OpenLayers trac-20090302 at openlayers.org
Wed May 18 07:35:49 EDT 2011


#3302: Post URL for GetMap request in WMSCapabilities Format
------------------------------------+---------------------------------------
 Reporter:  jachym                  |       Owner:  tschaub     
     Type:  feature                 |      Status:  new         
 Priority:  major                   |   Milestone:  2.11 Release
Component:  Format.WMSCapabilities  |     Version:  2.10        
 Keywords:  WMS, Post, Get          |       State:              
------------------------------------+---------------------------------------
 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"
 }}}

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3302>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list