Skip to main content
Solved

How to create from-to lines in star topology for ShortestPathFinder


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!

Best answer by takashi

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

View original
Did this help you find an answer to your question?

3 replies

  • Author
  • October 16, 2016

 

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.

 


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • October 16, 2016

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


  • Author
  • October 16, 2016
takashi wrote:

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

Excellent! Thank you very much! It works.

 

 


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