Ignore:
Timestamp:
10/08/06 15:23:02 (13 years ago)
Author:
domlowe
Message:

propagating additional args/configs through Scanner code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Scanner/csmllibs/csmlbuilder.py

    r1342 r1380  
    1616    #this class contains all the method calls to create and populate a csmldoc 
    1717    #it needs to be provided with several bits of information to be able to do this. 
    18     def __init__(self,directory,csmlft, mapping, timedimension ,outputfile,printscreen): 
     18    def __init__(self,directory,csmlft, mapping, timedimension ,outputfile,printscreen,timestorage,spatialstorage,valuestorage): 
    1919        self.directory = directory # top level directory containing data files  
    2020        self.csmlfeaturetype  = csmlft  
     
    2323        self.outputfile=outputfile 
    2424        self.printscreen=printscreen 
     25        self.timestorage=timestorage 
     26        self.spatialstorage=spatialstorage 
     27        self.valuestorage=valuestorage 
    2528        self.csml = None  # csml object holds the csml document in memory. 
    2629        self.ds_element = None #<Dataset> tag, root node. 
     
    8891    def makeFileExtracts(self): 
    8992        print "make FEs" 
    90         feBuilder =csmllibs.csmlfileextracts.fileExtractBuilder( self.ds, self.ffmap) 
    91         #self.csml = feBuilder.csmldoc 
    92         self.ds = feBuilder.dataset_element 
    93         #todo, remember ds == dataset_element in this file 
    94         self.extractType = feBuilder.extractType 
    95         self.extractPrefix  = feBuilder.extractPrefix 
    96         self.extractDictionary=feBuilder.fileExtractDictionary 
     93        if self.spatialstorage=='fileextract': 
     94            feBuilder =csmllibs.csmlfileextracts.fileExtractBuilder( self.ds, self.ffmap, self.timedimension) 
     95            self.ds = feBuilder.dataset_element 
     96            self.extractType = feBuilder.extractType 
     97            self.extractPrefix  = feBuilder.extractPrefix 
     98            self.extractDictionary=feBuilder.fileExtractDictionary 
    9799 
    98100    def createFeatureCollection(self): 
Note: See TracChangeset for help on using the changeset viewer.