Changeset 1034
- Timestamp:
- 01/24/08 08:52:15
- Files:
-
- OWSLib/branches/wcstemp/owslib/coverage/wcs100.py (modified) (4 diffs)
- OWSLib/branches/wcstemp/owslib/coverage/wcs110.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OWSLib/branches/wcstemp/owslib/coverage/wcs100.py
r1028 r1034 271 271 272 272 self.boundingBoxWGS84 = None 273 b = elem.find(ns('lonLatEnvelope')) 273 b = elem.find(ns('lonLatEnvelope')) 274 274 if b is not None: 275 275 gmlpositions=b.findall('{http://www.opengis.net/gml}pos') … … 281 281 ) 282 282 283 284 #timelimits are the start/end times, timepositions are all timepoints. WCS servers can declare one or both or neither of these. 283 285 def _getTimeLimits(self): 284 time limits=[]286 timepoints, timelimits=[],[] 285 287 b=self._elem.find(ns('lonLatEnvelope')) 286 288 if b is not None: … … 289 291 #have to make a describeCoverage request... 290 292 descCov=self._service.getDescribeCoverage(self.id) 291 for pos in self._elem.findall(ns('CoverageOffering/')+ns('domainSet/')+ns('temporalDomain/')+'{http://www.opengis.net/gml}timePosition'):293 for pos in descCov.findall(ns('CoverageOffering/')+ns('domainSet/')+ns('temporalDomain/')+'{http://www.opengis.net/gml}timePosition'): 292 294 timepoints.append(pos) 293 295 if timepoints: … … 297 299 298 300 def _getTimePositions(self): 299 #TODO 300 return [] 301 timepositions=[] 302 descCov=self._service.getDescribeCoverage(self.id) 303 for pos in descCov.findall(ns('CoverageOffering/')+ns('domainSet/')+ns('temporalDomain/')+'{http://www.opengis.net/gml}timePosition'): 304 timepositions.append(pos.text) 305 return timepositions 301 306 timepositions=property(_getTimePositions, None) 302 307 OWSLib/branches/wcstemp/owslib/coverage/wcs110.py
r1030 r1034 344 344 timelimits=property(_getTimeLimits, None) 345 345 346 #TODO timepositions property 347 346 348 def _checkChildAndParent(self, path): 347 349 ''' checks child coverage summary, and if item not found checks higher level coverage summary'''
