Skip to main content
Question

Create lines from Coordinates stored in a Table

  • May 31, 2013
  • 2 replies
  • 359 views

chris_m
Participant
Forum|alt.badge.img+1
I have table that contains records with among other things  a Origin X, Origin Y, Destination x, and Destination y, values as separate fields.  I would like to take this information and create line feature for each record from this data.  Is there a transformer that can do this or do I need to combine the Origin and Destination fields into a single X and Y coordinate first?
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

david_r
Celebrity
  • May 31, 2013
Hi Chris,

 

 

one way could be by using a 2DPointReplacer on OriginX / OriginY, followed by a 2DPointAdder on DestinationX / DestinationY. This should give you a line connecting the two coordinate pairs.

 

 

If you need to join these line segments too, take a look at the LineJoiner (hint: your input needs to be sorted first).

 

 

David

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • May 31, 2013
Hi,

 

 

Another option you migth consider is the point connector.