Changeset 4955


Ignore:
Timestamp:
11/02/09 13:42:59 (11 years ago)
Author:
domlowe
Message:

editing wcs capabilities

Location:
cows/trunk/cows
Files:
3 edited

Legend:

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

    r4912 r4955  
    4848                  <gml:pos>${'%.2f'%bb.lowerCorner[0]} ${'%.2f'%bb.lowerCorner[1]}</gml:pos> 
    4949                  <gml:pos>${'%.2f'%bb.upperCorner[0]} ${'%.2f'%bb.upperCorner[1]}</gml:pos> 
    50                   <gml:timePosition>${ds.timeLimits[0] + 'Z'}</gml:timePosition> 
    51                   <gml:timePosition>${ds.timeLimits[1] + 'Z'}</gml:timePosition> 
     50                  <gml:timePosition>${str(ds.timeLimits[0]) + 'Z'}</gml:timePosition> 
     51                  <gml:timePosition>${str(ds.timeLimits[1]) + 'Z'}</gml:timePosition> 
    5252          </lonLatEnvelope>      
    5353    </py:for> 
  • cows/trunk/cows/pylons/wcs_controller.py

    r4912 r4955  
    170170        # Get format 
    171171        format = self.getOwsParam('format') 
    172          
    173172        if srs not in layerObj.crss: 
    174173            raise InvalidParameterValue('Layer %s does not support SRS %s' % (layerName, srs)) 
  • cows/trunk/cows/service/imps/csmlbackend/wcs_csmllayer.py

    r4912 r4955  
    4848        timelimits=[domain[tax][0],domain[tax][len(domain[tax])-1]]   
    4949        crs=feature.getNativeCRS() 
    50         crss=[self._crscat.getCRS(crs).twoD] 
     50        log.debug(crs) 
     51        crss=[self._crscat.getCRS(crs).twoD] #TODO - populate cataloge for rotated grid 
    5152        if 'EPSG:4326' in crss: 
    5253            crss.append('CRS:84') 
    5354            crss.append('WGS84') 
    54          
     55        log.debug(crss) 
    5556        #build definitions of any Z axes such as air_pressure: 
    5657        axisDescriptions=[]         
     
    130131        self._feature=feature 
    131132        self.id=feature.id 
    132         bb = self._feature.getCSMLBoundingBox().getBox() 
     133        try:  
     134            bb = self._feature.getCSMLBoundingBox().getBox() 
     135        except: 
     136            #default to global 
     137            bb=[-180,-90,180,90] 
     138             
    133139        #convert 0 - 360 to -180, 180 as per common WXS convention 
    134140        if abs(bb[2]-bb[0]) >= 359 and abs(bb[2]-bb[0]) < 361: 
Note: See TracChangeset for help on using the changeset viewer.