答案为“新来FME - 使用PythonCaller - 我需要调用我创建的功能?” https://knowledge.亚搏在线safe.com/questions/86993/new-to-fme-using-pythoncaller-do-i-need-to-call-th.html 对于这个问题的答案,最新的“新来FME - 使用PythonCaller - 我需要调用我创建的功能?” 通过david_r回答 https://knowledge.亚搏在线safe.com/answers/87009/view.html

另外要注意,这可能是因为你预期将无法正常工作:

feat_class =功能

“功能”指的实例fmeobjects.FMEFeature,而不是一个字符串,ArcPy中会不知道该怎么办才好。

如果输入功能包含要素类名称作为属性,你可以这样做:

feat_class = feature.getAttribute( 'my_attribute_containing_feature_class_name')
周五,2019年2月15日15时33分55秒GMT david_r
通过ebygomm回答 https://knowledge.亚搏在线safe.com/answers/87007/view.html

在类或函数来处理功能中,您只是想processFeature不processFeature(功能)

周五,2019年2月15日十五点19分54秒GMT ebygomm