Every exemple of python caller I see would only modify attributes or add new attributes to each input feature. Is it possible to output new features or more features than were received by duplicating some inputs ?
Solved
create new features within a python caller
Best answer by jeroenstiers
Hi @vchalmel
Yes, that is possible indeed. The code below allows you to create a new feature.
You can output this feature by using the second line of the sample.
newFeature = fmeobjects.FMEFeature()
self.pyoutput(newFeature)This code only works when using the object-implementation (so not the function-implementation) of a PythonCaller. In the function-implementation, the feature entering the PythonCaller is outputted automatically.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
Login to the community
No account yet? Create an account
An FME Account is required to contribute
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.


