Skip to main content
Question

process multiple files as individuals


bubblebeb
Contributor
Forum|alt.badge.img+6
I have 10 shapefiles which I want to run through a workbench but I want to process each one at a time. The workbench has a workspace runner which feeds data to another process. I want to push each file through the process seperatly but not have to run the workbench 10 manual times with seperate shapefiles. 

 

 

I thought about the feature holder but I can't group them or parameterise them.

 

 

Thanks

 

Seb 

2 replies

takashi
Evangelist
  • May 14, 2015
Hi Seb,

 

 

How about creating another workspace having a WorkspaceRunner to run the workspace?

 

You can pass a shape file path to the Source Dataset parameter of your workspace through the WorkspaceRunner. If you create an external table that contains the 10 shape file paths, you can read it and pass the file path string to the WorkspaceRunner one by one.

 

Set "Yes" to the Wait for Job Complete" parameter to wait the child process completion if necessary.

 

 

Takashi

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 18, 2015
You can also read the file/directories using the pathreader, put a counter on it and then feed them to a customtransformer in wich you put your main process. Iterate trough them using a index < counter (or <= depending on index startvalue)

 

basically you inernaly create:

 

_count   filename

 

1             file1

 

2            file2

 

etc.

 

 

to iterate trough the shapefiles.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings