As far as I am aware the python function does not have this ability, but you can create it using the class. Note that you'll want to catch the first and last elements of the lists to avoid an index out of range exception (first feature has no previous, last feature has no next)
classFeatureProcessor(object):def__init__(self):
self.featureList=[]
definput(self,feature):
self.featureList.append(feature)
defclose(self):for i, feat in enumerate(self.featureList):
previous = self.featureList[i-1]
next = self.featureList[i+1]
As far as I am aware the python function does not have this ability, but you can create it using the class. Note that you'll want to catch the first and last elements of the lists to avoid an index out of range exception (first feature has no previous, last feature has no next)
classFeatureProcessor(object):def__init__(self):
self.featureList=[]
definput(self,feature):
self.featureList.append(feature)
defclose(self):for i, feat in enumerate(self.featureList):
previous = self.featureList[i-1]
next = self.featureList[i+1]
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.