Changeset 2030 for TI02-CSML/trunk


Ignore:
Timestamp:
23/01/07 12:58:10 (13 years ago)
Author:
domlowe
Message:

storage descriptor code working in scanner

Location:
TI02-CSML/trunk/csml
Files:
5 edited

Legend:

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

    r2029 r2030  
    2727        self.createFeatureCollection() 
    2828        self.createFeatures() 
    29         self.insertXlinks() 
     29        #self.insertXlinks() 
    3030        #self.closeFC() 
    3131        #self.closeDS() 
  • TI02-CSML/trunk/csml/csmllibs/csmlfileextracts.py

    r2015 r2030  
    6262            DI.closeFile()       
    6363        #Add all the file extracts to the dataset element 
    64         print adlist 
    65         setattr(self.dataset_element, 'fileExtracts', adlist) 
    66      
     64        sd=csml.parser.CSMLStorageDescriptor() 
     65        sd.descriptors=adlist 
     66        setattr(self.dataset_element, 'storageDescriptor', sd) 
    6767 
    6868def createSingleExtract(extractType, fileName, variableName, arraySize): 
  • TI02-CSML/trunk/csml/csmllibs/csmlxlink.py

    r2029 r2030  
    3838                    else: 
    3939                        print 'no, adding %s to dictionary'%xlinkID 
    40                         xlinkDictionary[xlinkID]=gO.coordAxisValues.coordinateList.CONTENT 
    41                         #timepositionlist alternative needed.. 
     40                        xlinkDictionary[xlinkID]=(gO.coordAxisValues.coordinateList.CONTENT, csml.csmllibs.csmlextra.getRandomID()) 
    4241                         
    4342                         
  • TI02-CSML/trunk/csml/parser.py

    r2025 r2030  
    721721    def __init__(self,**kwargs): 
    722722        addatts(self,[]) 
    723         children={'descriptors':[[CSML('NetCDFExtract'),CSML('PointFeature'),CSML('AggregatedArray')], 'FileExtract', CSML('descriptor')]} 
     723        children={'descriptors':[[CSML('NetCDFExtract'),CSML('PointFeature'),CSML('AggregatedArray')], 'FileExtract', CSML('descriptor'),1]} 
    724724        addchildren(self,children) 
    725725     
  • TI02-CSML/trunk/csml/testfiles/basictest.py

    r2025 r2030  
    3131#Hopefully the CSML output should be the same as the CSML it read in. 
    3232csmldoc = dataset.toXML() 
    33      
     33   
    3434#Tidy up and print the CSML document: 
    3535#strCSML= parseString(tostring(csml)).toprettyxml() 
Note: See TracChangeset for help on using the changeset viewer.