Ignore:
Timestamp:
27/03/08 10:19:42 (12 years ago)
Author:
spascoe
Message:

A required element was being missed. This has required a change to the WMS API.

Location:
TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common
Files:
3 edited

Legend:

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

    r3675 r3688  
    4343    <Abstract py:if="len(ds.abstracts)>0" py:content="ds.abstracts[0]"/> 
    4444    <CRS py:for="crs in ds.CRSs" py:content="crs"/> 
     45    <?python exBBox = ds.wgs84BoundingBoxes[0] ?> 
     46    <EX_GeographicBoundingBox> 
     47      <westBoundLongitude py:content="exBBox.lowerCorner[0]"/> 
     48      <eastBoundLongitude py:content="exBBox.upperCorner[0]"/> 
     49      <southBoundLatitude py:content="exBBox.lowerCorner[1]"/> 
     50      <northBoundLatitude py:content="exBBox.upperCorner[1]"/> 
     51    </EX_GeographicBoundingBox> 
     52 
    4553    <py:for each="bb in ds.boundingBoxes"> 
    4654      <BoundingBox CRS="${bb.crs}" 
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/pylons/wms_controller.py

    r3671 r3688  
    1616 
    1717from ows_common.model.wms import WmsDatasetSummary, Dimension 
    18 from ows_common.model import PossibleValues, BoundingBox, Contents 
     18from ows_common.model import PossibleValues, WGS84BoundingBox, BoundingBox, Contents 
    1919from ows_common.pylons import ows_controller 
    2020from ows_common.exceptions import * 
     
    9292            log.debug('Loading layer %s' % layerName) 
    9393 
     94            wgs84BBox = WGS84BoundingBox(layer.wgs84BBox[:2], 
     95                                         layer.wgs84BBox[2:]) 
    9496            # Get CRS/BBOX pairs 
    9597            bboxObjs = [] 
     
    108110                                   titles=[layer.title], 
    109111                                   CRSs=layer.crss, 
     112                                   wgs84BoundingBoxes=[wgs84BBox], 
    110113                                   boundingBoxes=bboxObjs, 
    111114                                   abstracts=[layer.abstract], 
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/service/wms_iface.py

    r3596 r3688  
    7171    @ivar units: A string describing the units. 
    7272    @ivar crss: A sequence of SRS/CRSs supported by this layer. 
     73    @ivar wgs84BBox: The bounding box in CRS:84 (lat/lon) 
    7374    @ivar legendSize: (width, height) in pixels of legend. 
    7475 
     
    7677 
    7778    """ 
    78     title = abstract = dimensions = units = crss = NotImplemented 
     79    title = abstract = dimensions = units = crss = wgs84BBox = NotImplemented 
    7980 
    8081    def getBBox(self, crs): 
Note: See TracChangeset for help on using the changeset viewer.