Skip to main content
Question

Create lines from Coordinates stored in a Table


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?

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+18
  • Safer
  • May 31, 2013
Hi,

 

 

Another option you migth consider is the point connector.

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