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_1_0.py

    r2964 r2978  
    123123            csmlbbox=c.dataset.getCSMLBoundingBox() 
    124124            bbox=csmlbbox.getBox() 
    125         #crs= csmlbbox.getCRSName() 
    126125        crs=feature.getNativeCRS() 
    127         crslist=[crs] #TODO, get these crs from the csml features 
     126        crslist=[crs]  
    128127        return WcsDatasetSummary(identifier=feature.id, 
    129128                                 titles=cvgTitle, 
     
    166165                timeLimits=csmlbbox.getTimeLimits() 
    167166                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            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) 
    169168            CoverageDescriptions.append(cd) 
    170169        return CoverageDescriptions 
     
    207206    @parameter('Version', possibleValues=['1.1.0']) 
    208207    @parameter('Identifiers', required=True) 
    209     @parameter('Format', possibleValues=['text/xml'], required=True)  #IS THIS MANDATORY 
     208    @parameter('Format', possibleValues=['text/xml'] 
    210209    def DescribeCoverage(self, uri, version, service, identifiers, format='text/xml'): 
    211210        """ 
     
    221220                    raise OWS_E.InvalidParameterValue('Coverage  with id=%s not found'%ident, 'identifiers') 
    222221                self.features[ident]=feature 
    223             c.covDescs=self._buildCoverageDescriptions() 
     222            if not hasattr(self,'covDescs'): 
     223                self.covDescs=self._buildCoverageDescriptions() 
     224            c.covDescs=self.covDescs 
    224225            r=render_response('wcs_DescribeCoverageResponse', format='xml') 
    225226            r.headers['content-type'] = 'text/xml' 
     
    239240    @parameter('BoundingBox', required=True, validator=V.bbox_2or3d) 
    240241    @parameter('TimeSequence',required=True, validator=V.iso8601_time) 
    241     @parameter('Format', possibleValues=['application/netcdf'], required=True) 
     242    @parameter('Format', possibleValues=['cf-netcdf'], required=True) 
    242243    @parameter('Store', validator = V.boolean('Store')) 
    243244    @parameter('Status', validator = V.boolean('Status')) 
Note: See TracChangeset for help on using the changeset viewer.