Ignore:
Timestamp:
01/11/07 14:14:20 (12 years ago)
Author:
domlowe
Message:

couple of minor template changes

File:
1 edited

Legend:

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

    r2969 r2978  
    165165                bbox=csmlbbox.getBox() 
    166166                timeLimits=csmlbbox.getTimeLimits() 
    167                 crsname=csmlbbox.getCRSName()                 
    168             cd=CoverageDescription(identifier=f,titles=feature.name.CONTENT, keywords=None, abstracts=feature.description.CONTENT, boundingBoxes=[BoundingBox([bbox[0],bbox[1]], [bbox[2],bbox[3]], crs=crsname)], timeDomain=timeLimits) 
     167                crsname=csmlbbox.getCRSName()                           
     168            cd=CoverageDescription(identifier=f,titles=feature.name.CONTENT, keywords=None, abstracts=feature.description.CONTENT, boundingBoxes=[BoundingBox([bbox[0],bbox[1]], [bbox[2],bbox[3]], crs=crsname)], crs=crsname, timeDomain=timeLimits) 
    169169            CoverageDescriptions.append(cd) 
    170170        return CoverageDescriptions 
     
    227227                    raise OWS_E.InvalidParameterValue('Coverage  with name=%s not found'%ident, 'identifiers') 
    228228                self.features[ident]=feature 
    229             c.covDescs=self._buildCoverageDescriptions() 
     229            if not hasattr(self,'covDescs'): 
     230                self.covDescs=self._buildCoverageDescriptions() 
     231            c.covDescs=self.covDescs 
    230232            r=render_response('wcs1_0_0_DescribeCoverageResponse', format='xml') 
    231233            r.headers['content-type'] = 'text/xml' 
Note: See TracChangeset for help on using the changeset viewer.