span8
span4
span8
span4
The FMEObjects Python API is available for use in the Startup and Shutdown Python (Workspace Parameters - Advanced in Workbench),as well as in the PythonCaller and PythonCreator transformers.One of the objects available is the FMELogFile,which provides access to the Workbench log.Most of the FMELogFile methods are for adding messages to the log,but the setCallBack method allows you to send a copy of all log messages to your own function.This lets you parse the log messages as they are created and pass information from those messages to features in the workspace while it is running.
The three examples below illustrate some of the possible uses of log information during the workspace run.
A customer found that some of his Microstation DGN files had been truncated.Normally,FME just posts a warning in the log file if it encounters a truncated file,but doesn't fail the translation.The customer wanted failures in order to separate the truncated files from the correct ones.
The Workbench readers often report file or table metadata to the log,but do not add this information to the features read from the file.The DGNMetadata example extracts the Global Origin,Master and Sub unit names and ratios from all the Microstation DGN files in a folder and outputs this information to an Excel file.
Output:
The AffineWarper transformer calculates a best fit Affine transformation from input control vectors,then uses it to transform the observed features for output.The calculated parameters are logged,but not stored on the transformed features.The GetAffineParameters example extracts those parameters into a CSV file for alternative uses.
Error: A Python installation could not be detected
Pyfme cannot be called from the command line with Data Interoperability
A Guide to Interpreting the System Information Batch File
The BADNEWS function returns a whole load of errors.What do they mean and should I be worried?
Setting up a workspace to deploy in production,staging and local
Debugging Guide for Workspaces
Extracting a schema subset for dynamic schemas
Adding Fields to an Existing Feature Class with FME and ArcPy
No Module Named ArcPy: Importing Esri's ArcPy for Use with FME
© 2019 亚搏在线Safe Software Inc |Legal