Skip to main content
Question

Hey community! I need to know if I can export in a python script language my total transfomation of my workflow. Can I do it? And how can I make it?

  • December 15, 2020
  • 5 replies
  • 13 views

giuseppecfgeo
Participant
Forum|alt.badge.img
Hey community! I need to know if I can export in a python script language my total transfomation of my workflow. Can I do it? And how can I make it?
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.

5 replies

hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1625 replies
  • December 15, 2020

Hey, you can't convert an FME script to python.

You can add start/finish python scripts, call python scripts from the workbench (PythonCaller/PythonCreator, SystemCaller) and you can also use python to call a work bench (something like os.system())

 

When you run a workbench the first few lines of the Translation Log contain the command line parameters to run the job

Screenshot 2020-12-16 080321


giuseppecfgeo
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • 22 replies
  • December 15, 2020

So can I use the first few lines of the Translation Log to insert it in python and create a little app or not?


hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1625 replies
  • December 15, 2020

So can I use the first few lines of the Translation Log to insert it in python and create a little app or not?

Yes, but the machine you run in on will need to have FME installed and licensed. Why are you needing to call fme from python?


giuseppecfgeo
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • 22 replies
  • December 15, 2020

I just need to remake the same transformation in python​


hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1625 replies
  • December 15, 2020

I just need to remake the same transformation in python​

All that the first few lines are going to do is call FME to run the process. To recreate the logic in Python you're going to have to start from scratch. If you're dealing with any spatial operations your going o have to use libraries such as ArcPy (Requires Esri License) or GDAL