I would like to have a python caller execute a task on every attribute of a feature. How can I do this ?
Page 1 / 1
Try something like
for attribute_name in feature.getAllAttributeNames():
attribute_value = feature.getAttribute(attribute_name)
print('{} = {}'.format(attribute_name, attribute_value))