span8
span4
span8
span4
Hi all,
I've got a question about integrating ArcPy in FME.It would appear that FME won't let me to read in multiple features and process them using ArcPy functions through PythonCaller.This can be easily done outside FME with one line of code such as:
arcpy.LocateFeaturesAlongRoutes_lr(feats,rts,rid,tol,tbl,props)
What I would hope to achieve with PythonCaller is that it can be used just like one of the transformers like clipper and buffer.Not sure anybody else has experienced the same issue?
Thanks!
@jonathanchiang0,yes,this is possible - you need to make sure you import arcpy in your script.Also,make sure you set the python interpreter in the navigation panel,as shown below:
As an example - In the screenshot below,I used a PythonCaller to take each incoming shapefile,check to see if it already exists in the specified geodatabase,and if the FC does not already exist,it imports the shapefile into the GDB.
Make sure you drag/drop parameters and attributes from the panel on the left.
-Courtney
Another option is a shutdown script.
© 2019 亚搏在线Safe Software Inc |Legal