Skip to main content
Solved

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

  • October 16, 2016
  • 3 replies
  • 49 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

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
Celebrity
  • Best Answer
  • October 16, 2016

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


  • Author
  • October 16, 2016

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

Excellent! Thank you very much! It works.