Skip to main content
Solved

Create Single Lines From Points

  • September 17, 2021
  • 2 replies
  • 709 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.

View original
Did this help you find an answer to your question?

2 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • 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
  • September 17, 2021
chrisatsafe wrote:

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!


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