Skip to main content
Solved

Create Single Lines From Points

  • September 17, 2021
  • 2 replies
  • 822 views

Hello everyone!

My problem:

I have a list of points, each point (of course) has coordinates and a timestamp. I would now like to create individual lines from the points and each line should store the two timestamps of the two points it was created from.

I've already tried the LineBuilder, but there I get a polyline.

 

Source:

Point a, b, c, d

 

Result LineBuilder:

Line 1: from a to b to c to d

 

Result I want:

Line 1: from a to b, Attributes: Timestamp_A, Timestamp_B

Line 2: from b to c, Attributes: Timestamp_B, Timestamp_C

Line 3: from c to d, Attributes: Timestamp_C, Timestamp_D

 

Any ideas?

Best answer by chrisatsafe

Hi @ferorelatum​ ,

 

How about something like this:

2021-09-17_9-16-09 

Use the LineBuilder as you normally would, then use the Chopper to split the line based on 2 vertices. Next, using a SpatialFilter, you can generate a list from points that touch each line and create the tiemstamp 1 and 2 attributes and set the value from the list.

 

There are likely other ways to accomplish this as well but I've attached a sample workspace in case that helps.

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

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • 606 replies
  • Best Answer
  • September 17, 2021

Hi @ferorelatum​ ,

 

How about something like this:

2021-09-17_9-16-09 

Use the LineBuilder as you normally would, then use the Chopper to split the line based on 2 vertices. Next, using a SpatialFilter, you can generate a list from points that touch each line and create the tiemstamp 1 and 2 attributes and set the value from the list.

 

There are likely other ways to accomplish this as well but I've attached a sample workspace in case that helps.


  • Author
  • 2 replies
  • September 17, 2021

Hi @ferorelatum​ ,

 

How about something like this:

2021-09-17_9-16-09 

Use the LineBuilder as you normally would, then use the Chopper to split the line based on 2 vertices. Next, using a SpatialFilter, you can generate a list from points that touch each line and create the tiemstamp 1 and 2 attributes and set the value from the list.

 

There are likely other ways to accomplish this as well but I've attached a sample workspace in case that helps.

@chrisatsafe​ , works fine. Thanks!