Question

Is there a way to sequence wise send the geometry based on attribute value say "1" completely going through all the transformers and writing the output then again starting with attribute value "2" and writing the output, like in a loop. How can we do

  • 26 February 2021
  • 3 replies
  • 1 view

Badge
Is there a way to sequence wise send the geometry based on attribute value say "1" completely going through all the transformers and writing the output then again starting with attribute value "2" and writing the output, like in a loop. How can we do it ?

3 replies

Badge +4

Hi @bhavyagandhi​ ,

 

You can create a custom transformer for a loop. Then set the data as you described.

You can check the links below.

 

FME Desktop Advanced Training 2018

https://safe-software.gitbooks.io/fme-desktop-advanced-training-2018/content/DesktopAdvanced5CustomTransformers/5.11.CustomTransformerLoops.html

 

FME Desktop Advanced Training 2018 Video - I pointed the link to the time that the instructor talks about loops.

https://youtu.be/QCnVqUGjLoc?t=37791

 

Userlevel 3
Badge +17

Or you use a Workspace runner. You create a user published parameter which tells the workspace what geometry it should proces. After is is done, it runs the new workspace with the next feature. It's more intuitive than using a looper.

 

But it starts a new process for every feature, so will be slower i guess.

Badge

Or you use a Workspace runner. You create a user published parameter which tells the workspace what geometry it should proces. After is is done, it runs the new workspace with the next feature. It's more intuitive than using a looper.

 

But it starts a new process for every feature, so will be slower i guess.

I have tried this approach: have built a custom transformer which is having the process that those attributes are to be passed from, so for each value I am calling that custom transformer again and giving that as an input

Reply