Ignore:
Timestamp:
06/02/07 15:43:35 (13 years ago)
Author:
domlowe
Message:

units and missing values now working properly in subsetgridseries

File:
1 edited

Legend:

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

    r2061 r2112  
    3939    #returns a list of feature ids for the dataset 
    4040    self.featureList = [] 
    41     for member in self.featureCollection.featureMembers: 
     41    for member in csml.csmllibs.csmlextra.listify(self.featureCollection.featureMembers): 
    4242            self.featureList.append(member.id) 
    4343    return self.featureList 
     
    4545def getFeature(self, featureID): 
    4646    """ returns a single feature object """ 
    47     for member in self.featureCollection.featureMembers: 
     47    for member in csml.csmllibs.csmlextra.listify(self.featureCollection.featureMembers): 
    4848            if member.id == featureID: 
    4949                return member     
    5050 
    5151def getFileExtract(self,extractID): 
    52         for extract in self.dataset.arrayDescriptors: 
     52        for extract in csml.csmllibs.csmlextra.listify(self.dataset.arrayDescriptors): 
    5353            if  extract.id==extractID: 
    5454                return extract  
Note: See TracChangeset for help on using the changeset viewer.