fmeobjects.FMEFeature.setAttributeNullWithType

FMEFeature.setAttributeNullWithType(attributeName, attributeType)

This method supplies a null attribute with a type to the feature. If an attribute with the same name already exists, it is overwritten.

Attribute type must be one of: 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.

Parameters:
  • attributeName (str) – The attribute’s name.

  • attributeType (int) – An integer representing the attribute type.

Return type:

None