Skip to main content
Solved

Make flow map with points


geo-x
Participant
Forum|alt.badge.img
  • Participant

Dear FME community.

I would like to make a flow map like in french "carte en oursin"

For do that, I've multiple group of points like this structure : One center with multiple destination for each group of points.

I tried to do that with this workbench :

Can you help me ?

Thank you.

Best answer by takashi

Hi @lalandexavier, I would use a CoordinateExtractor, a FeatureMerger and a VertexCreator. In addition, you can reverse the orientation of resulting lines with the Orientor if necessary.

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

5 replies

lars_de_vries
Forum|alt.badge.img+10

Hi @lalandexavier,

I would use a NeighborFinder transformer and feed the destinations in the Base port and the Centre in the Candidate port. You can set the Id as GroupBy. Next you can add a VertexCreator with 'Insert Point At Index' using the _closest_candidate_x and _closest_candidate_y on index 0.

UPDATE: Using 'Insert Point At Index' and index 0 will cause an error. You can use 'Add Vertex' and if you would like to have the line running from the centre to the destination you could add an Orientor


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • May 16, 2018

Hi @lalandexavier, I would use a CoordinateExtractor, a FeatureMerger and a VertexCreator. In addition, you can reverse the orientation of resulting lines with the Orientor if necessary.


geo-x
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • May 16, 2018
lars_de_vries wrote:

Hi @lalandexavier,

I would use a NeighborFinder transformer and feed the destinations in the Base port and the Centre in the Candidate port. You can set the Id as GroupBy. Next you can add a VertexCreator with 'Insert Point At Index' using the _closest_candidate_x and _closest_candidate_y on index 0.

UPDATE: Using 'Insert Point At Index' and index 0 will cause an error. You can use 'Add Vertex' and if you would like to have the line running from the centre to the destination you could add an Orientor

Thank you very much lars_de_vries both ideas with takashi are good !

 


geo-x
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • May 16, 2018
takashi wrote:

Hi @lalandexavier, I would use a CoordinateExtractor, a FeatureMerger and a VertexCreator. In addition, you can reverse the orientation of resulting lines with the Orientor if necessary.

Thank you very much takashi that's work ! It's perfect

 

 


david_r
Evangelist
  • May 17, 2018
Upvoted for brilliant illustration of the problem :-)

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