span8
span4
span8
span4
I would like to run the same workspace multiple times but with a different source geodabase each time.Basically, I want to run it once for each geodatabase in a given folder.I believe this could be scripted with Python, but am not entirely sure where to start.
Any suggestions or script samples is appreciated.
So you should have two FMWs at this point: one that does all your translations (let's call it Processor.fmw) and another fmw that uses the directory/file pathnames reader to feed the *.gdb names to the processor.fmw using a WorkspaceRunner Transformer.When you hook the Reader to the WSR and examine the parameters on the WSR, you will see the public parameter you set up on the processor.fmw.Using the dropdown arrow, you can set the parameter to one of the Reader's outputs like path_windows.
Ok, thanks.Have the directory/file pathnames reader working.I have the generic workspace set up as well with the published parameter.What is confusing is that I am not sure how to loop through the filenames from the reader.
You can use the reader "Directory and File Pathnames" to look for folders ending with .gdb, then send those to the WorkspaceRunner with a workspace that treats each one individually:
Is there any reason for you to search in Python instead of using Workspace Runner in FME?
Translation was SUCCESSFUL despite of ERROR in Logfile??1 Answer
output folder name from input file using python scripted paramter5 Answers
User-specified library could not be loaded FME 2017.1.12 Answers
Start FME from command line: Wait until translation is finished5 Answers
convert .map to .shp3 Answers
© 2020 Safe Software Inc |Legal