Skip to main content
Solved

Make flow map with points

  • May 16, 2018
  • 5 replies
  • 25 views

geo-x
Supporter
Forum|alt.badge.img+6

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.

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.

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
Celebrity
  • 7843 replies
  • 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
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • 89 replies
  • May 16, 2018

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
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • 89 replies
  • 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.

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

 

 


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