fmeobjects.FMEFeature.getAttributeType

FMEFeature.getAttributeType(attrName)

Get the type of the named attribute.

Parameters:

attrName (str) – The name of the attribute to get on the feature.

Return type:

int

Returns:

The attribute type of the named attribute. Attribute types are int values represented by the constants FME_ATTR_UNDEFINED, FME_ATTR_BOOLEAN, FME_ATTR_INT8, FME_ATTR_UINT8, FME_ATTR_INT16, FME_ATTR_UINT16, FME_ATTR_INT32, FME_ATTR_UINT32, FME_ATTR_REAL32, FME_ATTR_REAL64, FME_ATTR_REAL80, FME_ATTR_STRING, FME_ATTR_ENCODED_STRING, FME_ATTR_INT64, or FME_ATTR_UINT64.