Changeset 2215


Ignore:
Timestamp:
28/02/07 10:24:17 (12 years ago)
Author:
domlowe
Message:

adding online parser to svn

Location:
TI02-CSML/trunk/csml
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/API/ops_AbstractFeature.py

    r2095 r2215  
    1414 
    1515 
     16     
    1617 
    1718 
  • TI02-CSML/trunk/csml/API/ops_Dataset.py

    r2112 r2215  
    5353            if  extract.id==extractID: 
    5454                return extract  
     55 
     56def 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  
    3232 
    3333def getData(self,  fileposition=None,**kwargs): 
    34     #should handle setAxis or setVariable as cdms netcdf model 
    3534    #file position defines the position of the filename if a list of filenames exists 
    3635    #**kwargs can hold subsetting request. 
     
    5251        DI.setAxis(self.variableName.CONTENT) 
    5352        data=DI.getDataForAxis() 
    54         fillvalue=None 
    5553        dataArray=data 
    5654        fillvalue=None 
  • TI02-CSML/trunk/csml/csmllibs/csmlbuilder.py

    r2212 r2215  
    11import csml 
     2import sys 
    23 
    34#Class for building the csml document.  
     
    2122        #wrapper method to call methods in correct order. 
    2223        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             
    2431        self.createFeatureFileMap() 
    2532        if self.spatialstorage=='fileextract': 
  • TI02-CSML/trunk/csml/csmllibs/csmlextra.py

    r2212 r2215  
    106106        return mr 
    107107         
    108          
    109          
    110          
    111108 
    112109def addEnvelope(fc, ffmap): 
  • TI02-CSML/trunk/csml/testfiles/apicalls.py

    r2210 r2215  
    1111csmldoc = csml.parser.Dataset() 
    1212csmldoc.parse(f) 
     13 
     14print '\n this is the bounding box of the whole feature collection: ' 
     15print csmldoc.getBoundingBox 
     16sys.exit() 
     17 
    1318 
    1419 
Note: See TracChangeset for help on using the changeset viewer.