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
Did this help you find an answer to your question?

2 replies

ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • 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
  • Author
  • June 1, 2023
ebygomm wrote:

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.


Reply


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