Skip to main content

Hello FME community,

 

assuming that I have to sets of points, one contains the center nodes of the star topology and the other contains the child nodes of each star, how could I create the from-to lines for the ShortestPathFinder?

All points of both sets (center nodes and child nodes) have got an attribute star_id which determines to which star they belong. For instance, star A has got one center node with star_id=A and 8 child nodes with star_id=8, star B has got one center node with star_id=B and 6 child nodes with star_id=B etc.

I have tried the custom FromToBuilder from the FME Store and set both Join attribute option to star_id, but it only works for the first pair of points (center and child) of each star.

Best regards and many thanks in advance!

 

BTW: The PointConnector transformer may also do the trick, but I do not know how I can sort the input from those two different sets/sources in the required way. In my case: center node A, first child A, center node A, second child A, etc.

 


Hi @tkifuchs, I think this workflow does the trick.


Hi @tkifuchs, I think this workflow does the trick.

Excellent! Thank you very much! It works.

 

 


Reply