Is it possible to call FME transformers (or workbenches) from my python script?

المشرف العام

Administrator
طاقم الإدارة
I have a script mostly using arcpy, and in the middle of this script I convert a load of polylines to polygons:

arcpy.ET_GPPolylineToPolygon("Contours_L_1m.shp", "Contours_G_1m.shp", "FALSE") This worked when it was a very small data set, but with lots of data it takes ages then crashes because it runs out of ram.

Fortunately I found that using the AreaBuilder transformer in FME will do the same thing really quickly and without crashing. The problem here is that I now have to run the first half of my script, stop, convert my contours in FME, then run the second half of my script. So what I would like would be (ideally) to be able to run the AreaBuilder transformer from the ArcGIS python window, or (failing that) run the workbench from the python window, wait for it to finish, then continue the script.

Is this at all possible? and how would I go about achieving it?



أكثر...
 
أعلى