I saw a great interface to FME with Python there
What you guys are doing with it? I want ideas.
|
|
|
I'm just getting started with FME, and am using a shutdown script to copy my target FGDB to another location and to save out the log file:
That's pretty basic, but there really is no limit I don't think. There are tons of ideas here as well. EDIT: Added in code to get numbers of features written and push those out to CSV log file. |
||||
|
|
|
Have a look at Oliver's Python Corner. There's a ton of things you can do using Python in FME. I often use the PythonCaller to make some attributemanipulations inside 1 transformer rather than using 10 different transformers (if elif elif else ..) You can have very basic PythonCallers like this example which will convert all your attributes to uppercase values:
I also use the PythonCaller to send emails in case of failure or interact with an FTP Server etc .. There are really no limits Have fun and happy FMEing Jeff |
|||||
|
|
Examples: Custom Log import os.path, time, os, datetime, main , sys, pyfme,shutil from pyfme import * class expFeature(object): def init(self): self.logger = pyfme.FMELogfile() pass
And Send Email:
|
|||
|
|
|
Good example above: I'm currently writing an article for our knowledgebase called FMEPedia here: Python and FME Basics. This includes some simple examples such as deleting a file before running a workspace with a start up script, manipulating features with a PythonCaller etc. There are also links to more complex examples. Ken Bragg Safe Software |
||||
|
|
|
With FME Server 2012, it's possible to send an email automatically when the workbench finished.You don't need python for send an email. :) FME Server Configuration |
|||
|
|