Solved

Create Single Lines From Points

  • 17 September 2021
  • 2 replies
  • 188 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?

icon

Best answer by chrisatsafe 17 September 2021, 18:23

View original

2 replies

Badge +2

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.

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!

Reply