Greetings, I’m needing to loop through a list of zones and run a series of calculations and spatial intersections that require a rather lengthy model. The trick is I need the model to still grab the next value in the list and run all the calculations accordingly. The only way I know to do this is to use a workspacerunner and call a separate workspace containing the list each time I need the next value. This seems highly inefficient so is there not a better way to setup a single workspace and have it loop through the list at the beginning, run all calculations, and proceed to next value in the list?
Solved
How to loop through a list of values while performing calculations on each value
Best answer by bwn
Generally, looping is not required unless the output calculation result of an iteration is required as an input on the next iteration.
For everything else, FME will happily process all items in a List in parallel. If the results of all the Zones are independent from each other, then you can run them in one Workspace in a single Workflow that transforms all Zones results in parallel. If the Transformers need to be restricted to subsets of Features for each Zone, then use the "Group By" settings on those Transformers and ensuring that each Feature that needs to be grouped this way is attributed with the Zone identifier.
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.