Skip to main content
Solved

FME Desktop and PythonCaller

  • September 21, 2020
  • 2 replies
  • 15 views

Forum|alt.badge.img+1

Hello,

I have a program to make that require the use of a PythonCaller. But unfortunately, it looks very different to what I am used to, doing Python work.

I have looked up for some tutorials on how the input/output woks, but I have not found anything really useful, or even understandable.

Do you have any link for a tutorial that goes further than just launching a PythonCaller ?

I need to modify a SHP file, deleting some lines/geometry points and adding some, as well as features. All in 3D

Thank you

Best answer by anhphuongt

I think this will help:

https://community.safe.com/s/article/python-and-fme-basics

Especially that part about PythonCaller Transformer:

https://community.safe.com/s/article/pythoncaller-transformer

View original
Did this help you find an answer to your question?

2 replies

anhphuongt
Forum|alt.badge.img
  • Best Answer
  • September 21, 2020

takashi
Evangelist
  • September 22, 2020

Hi @theodore​ , every transformer having an input port requires an input feature to run.

If all you need is to just run the script written in the PythonCaller, add a Creator transformer to the workspace and connect its output port to the input port of the PythonCaller.

Just be aware that FME calls "input" method of a class or a function whose name was specified through the Class or Function to Process Features parameter in the PythonCaller, when a feature is arrived.

FYI, the PytonCreator too executes a Python script, but it requires no input features. 

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings