Question

process multiple files as individuals


Badge +1
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

Userlevel 2
Badge +17
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
Badge +3
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