I would like to have a python caller execute a task on every attribute of a feature. How can I do this ?
Try something like
for attribute_name in feature.getAllAttributeNames(): attribute_value = feature.getAttribute(attribute_name) print('{} = {}'.format(attribute_name, attribute_value))
See also https://docs.safe.com/fme/html/fmepython/api/fmeobjects/_feature/fmeobjects.FMEFeature.getAllAttributeNames.html#fmeobjects.FMEFeature.getAllAttributeNames
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.