Skip to main content
Solved

Create Line from Points in One Column and Using 'From' and 'To' Values


parashari
Forum|alt.badge.img+2

I have a dataset that includes 'from' and 'to' values in separate columns. The 'from' column contains latitude and longitude coordinates. Both 'from' and 'to' values are unique.

My question is: How can I create a line that connects the 'from' and 'to' values in FME? I would like to visualize the connection between these points using a line geometry.

Any guidance or suggestions on the workflow or transformers to use would be greatly appreciated.

Thank you in advance for your help!

Best answer by ebygomm

Use a featuremerger, to get the lat long values for your to points, then a vertex creator with add point to create the lines

image

View original
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.

2 replies

ebygomm
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Best Answer
  • May 31, 2023

Use a featuremerger, to get the lat long values for your to points, then a vertex creator with add point to create the lines

image


parashari
Forum|alt.badge.img+2

Use a featuremerger, to get the lat long values for your to points, then a vertex creator with add point to create the lines

image

Thank you so much @ebygomm​. That worked for me.