Changeset 5029 for cows


Ignore:
Timestamp:
24/02/09 15:56:24 (10 years ago)
Author:
domlowe
Message:

correction to WCS Capabilities doc in line with new bounding box handling

Location:
cows/trunk/cows/pylons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/pylons/templates/wcs_capabilities_1_0_0.xml

    r4982 r5029  
    4141    <abstract py:if="len(ds.abstracts)>0" py:content="ds.abstracts[0]"/> 
    4242    <SRS py:for="crs in ds.CRSs" py:content="crs"/> 
    43     <py:for each="bb in ds.boundingBoxes"> 
     43    <py:for each="bb in ds.wgs84BoundingBoxes"> 
    4444      <lonLatEnvelope> 
    4545        <gml:pos>${'%.2f'%bb.lowerCorner[0]} ${'%.2f'%bb.lowerCorner[1]}</gml:pos> 
  • cows/trunk/cows/pylons/wcs_controller.py

    r5002 r5029  
    9797            log.debug('Loading coverage %s' % cvgName) 
    9898 
    99             wgs84BBox = WGS84BoundingBox(coverage.wgs84BBox[:2], 
    100                                          coverage.wgs84BBox[2:]) 
    101             # Get CRS/BBOX pairs 
    102             bboxObjs = [] 
    103             for crs in coverage.crss: 
    104                 bbox = coverage.getBBox(crs) 
    105                 bboxObjs.append(BoundingBox(bbox[:2], bbox[2:], crs=crs)) 
     99#            wgs84BBox = WGS84BoundingBox(coverage.wgs84BBox[:2], 
     100#                                         coverage.wgs84BBox[2:]) 
     101#            wgs84BBox=coverage.wgs84BBox 
     102#            # Get CRS/BBOX pairs 
     103#            bboxObjs = [] 
     104#            for crs in coverage.crss: 
     105#                bbox = coverage.getBBox(crs) 
     106#                bboxObjs.append(BoundingBox(bbox[:2], bbox[2:], crs=crs)) 
    106107                 
    107108            # Create the cows object 
     
    110111            ds = WcsDatasetSummary(identifier=coverage.id, 
    111112                                 titles=coverage.title, 
     113                                 wgs84BoundingBoxes=[coverage.wgs84BBox], 
    112114                                 boundingBoxes=[coverage.bboxes],  
    113115                                 description=coverage.description, 
Note: See TracChangeset for help on using the changeset viewer.