Ignore:
Timestamp:
22/05/07 16:05:53 (13 years ago)
Author:
spascoe
Message:

Operations metadata inserted correctly for CSML WMS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/wms_service_metadata.kid

    r2501 r2507  
    1616                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    1717                  xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_2_0.xsd"> 
    18   <Service py:def="wms_service"> 
    19     <?python m = WmsOwsAdapter(c.ows_c) ?> 
     18<?python 
    2019 
     20m = WmsOwsAdapter(c.ows_c) 
     21ops = c.ows_capabilities.operationsMetadata.operationDict 
     22 
     23?> 
     24 
     25  <Service> 
    2126    <Name>WMS</Name> 
    2227    <Title py:if="m.title" py:content="m.title"/> 
     
    4853    <AccessConstraints py:content="m.accessConstraints"/> 
    4954  </Service> 
     55  <Capability> 
     56    <Request> 
     57      <GetCapabilities py:if="'GetCapabilities' in ops"> 
     58        <?python caps = ops['GetCapabilities'] ?> 
     59        <Format py:for="f in caps.parameters['Format'].possibleValues.allowedValues" 
     60                py:content="f"/> 
     61        <DCP> 
     62          <HTTP> 
     63            <Get py:if="caps.get"> 
     64              <OnlineResource xlink:type="simple" xlink:href="${caps.get.href}"/> 
     65            </Get> 
     66            <Post py:if="caps.post"> 
     67              <OnlineResource xlink:type="simple" xlink:href="${caps.post.href}"/> 
     68            </Post> 
     69          </HTTP> 
     70        </DCP> 
     71      </GetCapabilities> 
     72    </Request> 
     73  </Capability> 
    5074</WMS_Capabilities> 
Note: See TracChangeset for help on using the changeset viewer.