Hello,
I have a set of point and a grid partition. each point is assign to a partition
I have build a list containing all point in a partition (listbuilder group by partition_id)
Is there a way to get the feature geometry of each element of the list.
Does the geometry is preserved in a listbuilder ?
if so How can I retreive it within the list of element in python?
so far I only get NoneType in my_list.
I saw that I must do something like my_list = feature.getAttribute("_list{}.<attributeName>")
But what is the attribute name for the geometry ?
later I would like to do something like
feature.getAllCoordinates() on each element of the list
def input(self, feature):
my_list = feature.getAttribute("_list{}")
# flush the list
self.fList = []
if my_list is not None and len(my_list) > 0:
for item in my_list:
new_feature = feature.clone()
self.fList.append(new_feature)
self.DBScan(self.fList, self.eps, self.minPts)
else:
partition = feature.getAttribute("partition")
self.logger.logMessageString("partition {} as no value : ".format(partition) , fmeobjects.FME_ERROR)