fmeobjects.FMEFeature.setAttribute

FMEFeature.setAttribute(attrName, attrValue)

Supply a new attribute for the feature. If the attribute already exists, it will be overwritten. The following type numeric mappings are used:

PyInt ==> FME_Int32

PyFloat ==> FME_Real64

PyLong ==> FME_Int64

For Python 2.7, strings can be input as one of two possible types: system encoded strings or unicode strings. Binary values are to be specified as bytearray values.

For Python 3, binary values are to be specified as bytes or bytearray values.

Parameters:
Return type:

None