谢谢大家
FMEFeature。setAttributeNullWithType(attrName, attrType) should be what you're looking for.对于大多数用例,attrType无关紧要,因此可以使用fmeobjects.FME_ATTR_UNDEFINED等。
不幸的是,python None值在setAttribute方法中被解析为空字符串。