Changeset 3770


Ignore:
Timestamp:
07/04/08 12:05:31 (11 years ago)
Author:
domlowe
Message:

fixing DescribeCoverage? response

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

Legend:

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

    r3536 r3770  
    152152        CoverageDescriptions=[] 
    153153        csmlbbox=c.dataset.getCSMLBoundingBox() 
    154         dsbbox=csmlbbox.getBox() 
    155         dstimes=csmlbbox.getTimeLimits() 
    156         dscrs=csmlbbox.getCRSName() 
     154        if csmlbbox is not None: 
     155            dsbbox=csmlbbox.getBox() 
     156            dstimes=csmlbbox.getTimeLimits() 
     157            dscrs=csmlbbox.getCRSName() 
     158        else: 
     159            dsbbox, dstimes, dscrs = None, None, None 
    157160        for f in self.features: 
    158161            feature = self.features[f] 
     
    230233                self.covDescs=self._buildCoverageDescriptions() 
    231234            c.covDescs=self.covDescs 
    232             r=render('wcs1_0_0_DescribeCoverageResponse', format='xml') 
    233             r.headers['content-type'] = 'text/xml' 
    234             return r 
     235            response.headers['content-type'] = 'text/xml' 
     236            return render('wcs1_0_0_DescribeCoverageResponse', format='xml') 
    235237        except Exception, e: 
    236238            if isinstance(e, OWS_E.OwsError): 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/csml_util.py

    r3536 r3770  
    99""" 
    1010from pylons import c, g, cache, request, session, response 
    11 import csml, cdms 
     11import csml 
     12try: 
     13    import cdms2 as cdms 
     14except: 
     15    import cdms 
    1216import os, string 
    1317import zipfile 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/ndgInterface.py

    r3501 r3770  
    99from cache import Cache 
    1010import os, tempfile 
    11 import cdms, csml 
     11import csml 
     12try: 
     13    import cdms2 as cdms 
     14except: 
     15    import cdms 
    1216from ndgUtils import ndgRetrieve, ndgObject, xmlHandler2 
    1317from pylons import request,session 
Note: See TracChangeset for help on using the changeset viewer.