Skip to main content
Question

Convert Points to Lines

  • December 9, 2014
  • 10 replies
  • 827 views

Forum|alt.badge.img
Dear FME community,

 

 

perhaps there's an easy solution for this:

 

 

Is there a way to convert dataset of points to lines? The lines need only to be a few metres long, and the orientation is not of interest at first. Something of a PointToLine transformer...?

 

 

Kind regards

 

Thomas
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.

10 replies

david_r
Celebrity
  • 8392 replies
  • December 9, 2014
Hi,

 

 

look at the PointConnector or the VertexCreator.

 

 

David

Forum|alt.badge.img
  • Author
  • 71 replies
  • December 9, 2014
Thanks David!

 

 

The PointConnector did the trick. The distance between the points can be adjusted in the Offsetter.

 

 

Kind regards

 

Thomas

 

 


takashi
Celebrity
  • 7843 replies
  • December 10, 2014
Good work, Thomas.

 

 

Another way.

 

If you are going to create line segments whose start node is the original point and end node should be offsetted from the point, the VertexCreator (Mode: Addd Point) can also be used effectively, as David mentioned first.

 

Assuming that the offset amounts are x = 1.0, y = 1.0:

 

 

@X/YValue function extracts the value of the first x/y coordinate of the feature.

 

FYI.

 

 

Takashi

Forum|alt.badge.img
  • Author
  • 71 replies
  • December 10, 2014
Thank you Takashi.

 

 

Works like a charm. Just one transformer is of course more efficient.

 

 

Kind regards

 

Thomas

Forum|alt.badge.img
  • 20 replies
  • November 2, 2020

where is the answer? I cant see it?


david_r
Celebrity
  • 8392 replies
  • November 2, 2020

where is the answer? I cant see it?

Did you click the "expand post" link at the end of each reply?


Forum|alt.badge.img
  • 20 replies
  • November 2, 2020

Did you click the "expand post" link at the end of each reply?

Cheers! Not used to forum just yet!


david_r
Celebrity
  • 8392 replies
  • November 2, 2020

Did you click the "expand post" link at the end of each reply?

No worries, not a fan of that particular functionality either...


Forum|alt.badge.img
  • 20 replies
  • November 2, 2020

Did you click the "expand post" link at the end of each reply?

CaptureOn the offchance do you know how I could convert these 4 simple points into a polygon?

 

Angle Range Intensity X Y Z

340.7656236 2.64199996 1008 0.870362491 -2.49452058 0

341.0000084 2.65199995 1008 0.863406364 -2.507515341 0

341.2812482 2.657000065 1008 0.85269237 -2.516458835 0

341.5624881 2.625999928 1008 0.830525534 -2.491205121 0

 

Sort of thing I've tried is above image:


david_r
Celebrity
  • 8392 replies
  • November 2, 2020

Did you click the "expand post" link at the end of each reply?

The easiest is proably to chain 4 VertexCreators one after another (one per vertex). Configure the first VertexCreator to use mode "Replace with point", the following with "Add point". Adding points to a point geometry will automatically convert it to a polyline. Finally, add a LineCloser to close the line and convert to a polygon.