- Timestamp:
- 27/02/07 10:01:27 (14 years ago)
- Location:
- TI02-CSML/trunk/csml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py
r2210 r2211 137 137 param = self.parameter 138 138 139 #create 'location' attribute: 140 latName=crs.axes[crs.latAxis] 141 lonName=crs.axes[crs.lonAxis] 142 if (latName, lonName) is not (None, None): 143 locStr ='%s %s'%(kwargs[latName], kwargs[lonName]) 144 loc=csml.parser.csString(locStr) 145 else: 146 loc = csml.parser.csString('unknown location') 147 148 139 149 #create a stand alone gridseries feature containing this coverage 140 subsettedFeature=csmlWrap.createProfileSeriesFeature(value=cvg,parameter=param, featureID=self.id,description=self.description)150 subsettedFeature=csmlWrap.createProfileSeriesFeature(value=cvg,parameter=param, location=loc, featureID=self.id,description=self.description) 141 151 142 152 -
TI02-CSML/trunk/csml/csmllibs/csmlfeaturewrap.py
r2210 r2211 22 22 return feature 23 23 24 def createProfileSeriesFeature(self,value , parameter=None,featureID=None,description=None):24 def createProfileSeriesFeature(self,value=None, parameter=None, location=None, featureID=None,description=None): 25 25 feature=csml.parser.ProfileSeriesFeature() 26 26 feature=self._createAbstractFeature(feature, value, parameter,featureID,description) 27 feature.location =location 27 28 return feature 28 29
Note: See TracChangeset
for help on using the changeset viewer.