- Timestamp:
- 23/01/07 12:58:10 (14 years ago)
- Location:
- TI02-CSML/trunk/csml
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/csml/csmllibs/csmlbuilder.py
r2029 r2030 27 27 self.createFeatureCollection() 28 28 self.createFeatures() 29 self.insertXlinks()29 #self.insertXlinks() 30 30 #self.closeFC() 31 31 #self.closeDS() -
TI02-CSML/trunk/csml/csmllibs/csmlfileextracts.py
r2015 r2030 62 62 DI.closeFile() 63 63 #Add all the file extracts to the dataset element 64 print adlist65 s etattr(self.dataset_element, 'fileExtracts', adlist)66 64 sd=csml.parser.CSMLStorageDescriptor() 65 sd.descriptors=adlist 66 setattr(self.dataset_element, 'storageDescriptor', sd) 67 67 68 68 def createSingleExtract(extractType, fileName, variableName, arraySize): -
TI02-CSML/trunk/csml/csmllibs/csmlxlink.py
r2029 r2030 38 38 else: 39 39 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()) 42 41 43 42 -
TI02-CSML/trunk/csml/parser.py
r2025 r2030 721 721 def __init__(self,**kwargs): 722 722 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]} 724 724 addchildren(self,children) 725 725 -
TI02-CSML/trunk/csml/testfiles/basictest.py
r2025 r2030 31 31 #Hopefully the CSML output should be the same as the CSML it read in. 32 32 csmldoc = dataset.toXML() 33 33 34 34 #Tidy up and print the CSML document: 35 35 #strCSML= parseString(tostring(csml)).toprettyxml()
Note: See TracChangeset
for help on using the changeset viewer.