Ignore:
Timestamp:
18/09/07 09:53:39 (12 years ago)
Author:
domlowe
Message:

capabilities doc now validates, although some optional stuff still missing

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_wcs.py

    r2864 r2889  
    118118            csmlbbox=c.dataset.getCSMLBoundingBox() 
    119119            bbox=csmlbbox.getBox() 
    120         crslist=['ndgcrs1', 'ndgcrs2'] #TODO, get these crs from the csml features 
     120        #crs= csmlbbox.getCRSName() 
     121        crs=feature.getNativeCRS() 
     122        crslist=[crs] #TODO, get these crs from the csml features 
    121123        return WcsDatasetSummary(identifier=feature.id, 
    122124                                 titles=cvgTitle, 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/ows/wcs_capabilities.kid

    r2857 r2889  
    3232  <owcs:Operation py:def="opXML(op)" name="${op.name}" > 
    3333    <?python formats = op.parameters.get('Format') ?> 
     34    <owcs:DCP> 
     35        <owcs:HTTP> 
     36            <owcs:Get py:if="op.get is not None" xlink:type="simple" xlink:href="${op.get.href}"> 
     37            </owcs:Get> 
     38            <owcs:Post py:if="op.post is not None" xlink:type="simple" xlink:href="${op.post.href}"> 
     39            </owcs:Post> 
     40        </owcs:HTTP> 
     41        </owcs:DCP>     
    3442    <owcs:Parameter name="Format">    
    3543        <owcs:AllowedValues> 
     
    3947        </owcs:AllowedValues> 
    4048    </owcs:Parameter> 
    41     <owcs:DCP> 
    42       <owcs:HTTP> 
    43         <owcs:Get py:if="op.get is not None" xlink:type="simple" xlink:href="${op.get.href}"> 
    44         </owcs:Get> 
    45         <owcs:Post py:if="op.post is not None" xlink:type="simple" xlink:href="${op.post.href}"> 
    46         </owcs:Post> 
    47       </owcs:HTTP> 
    48     </owcs:DCP> 
    4949  </owcs:Operation> 
    5050 
     
    5353  <CoverageSummary py:def="coverageSummary(ds)"> 
    5454    <!--!  coverageSummary comes from wmsDatasetSummary  TODO   -->  
    55     <Identifier py:if="ds.identifier is not None" py:content="ds.identifier"/> 
    56     <Description py:if="ds.description is not None" py:content="ds.description"/> 
    5755    <ows:Title py:if="ds.titles is not None" py:content="ds.titles"/>         
    5856    <ows:Abstract py:if="ds.abstracts is not None" py:content="ds.abstracts"/>     
    5957    <ows:Keywords> 
     58        <ows:Keyword>NONE</ows:Keyword> 
    6059    </ows:Keywords> 
    6160    <ows:WGS84BoundingBox py:for="bb in ds.boundingBoxes"> 
     
    6766    <SupportedFormat py:for="format in ds.formats"  
    6867                py:content="format"/> 
     68    <Identifier py:if="ds.identifier is not None" py:content="ds.identifier"/> 
    6969    <CoverageSummary py:for="ds1 in ds.datasetSummaries" py:replace="coverageSummary(ds1)"/> 
    7070  </CoverageSummary> 
     
    8383  <!--***************************************--> 
    8484  <owcs:ServiceIdentification> 
    85     <ows:Name>WCS</ows:Name> 
    8685    <ows:Title py:content="si.titles[0]"/> 
    8786    <ows:Abstract py:if="len(si.abstracts)>0" py:content="si.abstracts[0]"/> 
    8887    <ows:Keywords> 
    89       <ows:Keyword py:for="kw in si.keywords" 
     88    <ows:Keyword py:for="kw in si.keywords" 
    9089               py:content="kw"/> 
    9190    </ows:Keywords> 
     
    9392    <owcs:ServiceTypeVersion>1.1.0</owcs:ServiceTypeVersion> 
    9493    <owcs:Fees py:content="si.fees"/> 
    95     <owcs:AccessConstraints py:content="si.fees"/> 
    96     <AccessConstraints py:content="si.accessConstraints"/> 
     94    <owcs:AccessConstraints py:content="si.accessConstraints"/> 
    9795   </owcs:ServiceIdentification> 
    9896  <!--***************************************--> 
Note: See TracChangeset for help on using the changeset viewer.