Ignore:
Timestamp:
26/01/07 15:01:10 (13 years ago)
Author:
domlowe
Message:

lots of changes to do with subsetting

File:
1 edited

Legend:

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

    r1902 r2061  
    1515        #Create an Empty Dataset & FeatureCollection 
    1616        self.ds = csml.parser.Dataset() 
    17         self.fc=csml.parser.FeatureCollection() 
    1817        #Set attributes of dataset 
    1918        #if 'metadata' is a URI, set it as href attribute if MetaDataProperty instance, 
     
    3130        self.dm=[] #empty list to hold definition members (e.g. UnitDefinitions) 
    3231        self.fm=[] #empty list to hold feature members (e.g. GridFeatures, PointFeatures) 
    33         self.ad=[] #empty list to hold array descriptors (e.g. NetCDFExtract) 
     32        self.sd=[] #empty list to hold storage descriptors (e.g. NetCDFExtract) 
    3433        #the dataset is now initialised. now you can add features/defintions/arraydescriptors 
    3534        #using the methods supplied. 
     
    6261    
    6362    def getContents(self): 
    64         self.ds.arrayDescriptors=self.ad 
    65         self.ds.featureCollection=csml.parser.FeatureCollection(members=self.fm) 
     63        self.ds.storageDescriptor=self.sd 
     64        self.ds.featureCollection=csml.parser.CSMLFeatureCollection(featureMembers=self.fm) 
    6665        csmlout=self.ds.toXML() 
    6766        #parse and pretty print the result to file 
Note: See TracChangeset for help on using the changeset viewer.