Ignore:
Timestamp:
07/03/08 10:28:58 (13 years ago)
Author:
spascoe
Message:

Several bugs that were making the Capabilities document invalid.

The DDP test WMS server is now viewable through Cadcorp's Map Browser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/pylons/templates/wms_capabilities_1_1_1.xml

    r3548 r3561  
    99from genshi import QName 
    1010import webhelpers as h 
     11import sets 
    1112 
    1213?> 
     
    4445    <Title py:content="ds.titles[0]"/> 
    4546    <Abstract py:if="len(ds.abstracts)>0" py:content="ds.abstracts[0]"/> 
     47    <SRS py:for="crs in ds.CRSs" py:content="crs"/> 
    4648    <py:for each="bb in ds.boundingBoxes"> 
    4749      <BoundingBox SRS="${bb.crs}" 
    48                    minx="${bb.lowerCorner[0]}" 
    49                    miny="${bb.lowerCorner[1]}" 
    50                    maxx="${bb.upperCorner[0]}" 
    51                    maxy="${bb.upperCorner[1]}"/> 
     50                   minx="${'%.2f'%bb.lowerCorner[0]}" 
     51                   miny="${'%.2f'%bb.lowerCorner[1]}" 
     52                   maxx="${'%.2f'%bb.upperCorner[0]}" 
     53                   maxy="${'%.2f'%bb.upperCorner[1]}"/> 
    5254    </py:for> 
    5355 
     
    6062    <!-- TODO Style --> 
    6163    <!-- TODO ScaleHint --> 
    62     <py:for each="d_n, d in ds.dimensions.iteritems()"> 
    63       <Dimension name="${d_n}" units="${d.valuesUnit}" 
    64                  unitSymbol="${d.unitSymbol}"/> 
    65       <Extent name="${d_n}" default="${d.defaultValue}" nearestValue="${int(d.nearestValue)}" 
    66               py:content="','.join(d.possibleValues.allowedValues)"/> 
    67     </py:for> 
     64 
     65<!-- 
     66    <Dimension py:for="d_n, d in ds.dimensions.iteritems()" 
     67               name="${d_n}" units="${d.valuesUnit}" 
     68               unitSymbol="${d.unitSymbol}"/> 
     69    <Extent py:for="d_n, d in ds.dimensions.iteritems()" name="${d_n}" default="${d.defaultValue}" nearestValue="${int(d.nearestValue)}" 
     70            py:content="','.join(d.possibleValues.allowedValues)"/> 
     71--> 
     72 
    6873  </Layer> 
    6974 
     
    7277 
    7378  <Service py:with="sm=c.capabilities; si=c.capabilities.serviceIdentification"> 
    74     <Name>WMS</Name> 
     79    <Name>OGC:WMS</Name> 
    7580    <Title py:content="si.titles[0]"/> 
    7681    <Abstract py:if="len(si.abstracts)>0" py:content="si.abstracts[0]"/> 
Note: See TracChangeset for help on using the changeset viewer.