Changeset 2215
- Timestamp:
- 28/02/07 10:24:17 (14 years ago)
- Location:
- TI02-CSML/trunk/csml
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/csml/API/ops_AbstractFeature.py
r2095 r2215 14 14 15 15 16 16 17 17 18 -
TI02-CSML/trunk/csml/API/ops_Dataset.py
r2112 r2215 53 53 if extract.id==extractID: 54 54 return extract 55 56 def getBoundingBox(self): 57 ''' get boundingBox, returns the boundingBox of the CSMLFeatureCollection (assumes there is only one...)''' 58 print self.CSMLFeatureCollection.boundedBy -
TI02-CSML/trunk/csml/API/ops_FileExtract.py
r2176 r2215 32 32 33 33 def getData(self, fileposition=None,**kwargs): 34 #should handle setAxis or setVariable as cdms netcdf model35 34 #file position defines the position of the filename if a list of filenames exists 36 35 #**kwargs can hold subsetting request. … … 52 51 DI.setAxis(self.variableName.CONTENT) 53 52 data=DI.getDataForAxis() 54 fillvalue=None55 53 dataArray=data 56 54 fillvalue=None -
TI02-CSML/trunk/csml/csmllibs/csmlbuilder.py
r2212 r2215 1 1 import csml 2 import sys 2 3 3 4 #Class for building the csml document. … … 21 22 #wrapper method to call methods in correct order. 22 23 self.createDataset() 23 self.addGMLMetadata() 24 try: 25 self.addGMLMetadata() 26 except TypeError: 27 #this is caused by an incorrect directory name 28 print 'error: Cannot find a config file at this location.' 29 sys.exit() 30 24 31 self.createFeatureFileMap() 25 32 if self.spatialstorage=='fileextract': -
TI02-CSML/trunk/csml/csmllibs/csmlextra.py
r2212 r2215 106 106 return mr 107 107 108 109 110 111 108 112 109 def addEnvelope(fc, ffmap): -
TI02-CSML/trunk/csml/testfiles/apicalls.py
r2210 r2215 11 11 csmldoc = csml.parser.Dataset() 12 12 csmldoc.parse(f) 13 14 print '\n this is the bounding box of the whole feature collection: ' 15 print csmldoc.getBoundingBox 16 sys.exit() 17 13 18 14 19
Note: See TracChangeset
for help on using the changeset viewer.