Changeset 1127

Show
Ignore:
Timestamp:
07/29/08 08:21:23
Author:
domlowe
Message:

fixed bug with Describe coverage request when hierarchical coverages are present. Added stub for grid as per 1.0, but not completed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OWSLib/trunk/owslib/coverage/wcs110.py

    r1117 r1127  
    7878            top=None 
    7979            for elem in self._capabilities.findall('{http://www.opengis.net/wcs/1.1}Contents/{http://www.opengis.net/wcs/1.1}CoverageSummary'):      
    80                 cm=ContentMetadata(elem, top
     80                cm=ContentMetadata(elem, top, self
    8181                #make the describeCoverage requests to populate the supported formats/crs attributes 
    8282                self.contents[cm.id]=cm 
     
    337337            self.supportedFormats.append(format.text) 
    338338             
    339              
     339         
     340    #grid is either a gml:Grid or a gml:RectifiedGrid if supplied as part of the DescribeCoverage response. 
     341    def _getGrid(self): 
     342        grid=None 
     343        #TODO- convert this to 1.1 from 1.0 
     344        #if not hasattr(self, 'descCov'): 
     345                #self.descCov=self._service.getDescribeCoverage(self.id) 
     346        #gridelem= self.descCov.find(ns('CoverageOffering/')+ns('domainSet/')+ns('spatialDomain/')+'{http://www.opengis.net/gml}RectifiedGrid') 
     347        #if gridelem is not None: 
     348            #grid=RectifiedGrid(gridelem) 
     349        #else: 
     350            #gridelem=self.descCov.find(ns('CoverageOffering/')+ns('domainSet/')+ns('spatialDomain/')+'{http://www.opengis.net/gml}Grid') 
     351            #grid=Grid(gridelem) 
     352        return grid 
     353    grid=property(_getGrid, None) 
     354         
     355         
     356         
    340357    #time limits/postions require a describeCoverage request therefore only resolve when requested 
    341358    def _getTimeLimits(self):