Skip to main content
Solved

How to Generate multiples lines from sequenced points


Hello,

 

I'm looking to generate a number of lines from coordinate data within a spreadsheet, each with distinct start/end points, but grouped by a common attribute. Each of the points are ordered numerically (and geographically).

 

Using LineBuilder seems connects all points in a line to eachother, rather than creating one line sequentially.

 

The image attached shows how the relevant data is organised, so with this data I'd need 3 lines, one each for group A, B, and C, with each line each starting at point 1 and ending at point 5.

 

Thanks for any help!

Best answer by alexlynch3450

I attached workspace with wanted functionality.

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

5 replies

DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • January 10, 2022

Hi @wooter​ Did you use a VertexCreator before the LineBuilder and enable group processing/Group By in the LineBuilder?


  • Author
  • January 11, 2022

Yeah I had done both of those things and still seemed to have issues. It may be grouping the points correctly, but I don't think anything is defining the points as a sequence in order, its just grouping the lines together and joining them all.


alexlynch3450
Contributor
Forum|alt.badge.img+14
  • Contributor
  • Best Answer
  • January 11, 2022

I attached workspace with wanted functionality.


takashi
Evangelist
  • January 11, 2022
wooter wrote:

Yeah I had done both of those things and still seemed to have issues. It may be grouping the points correctly, but I don't think anything is defining the points as a sequence in order, its just grouping the lines together and joining them all.

Hi @wooter​ , I think the point features read from the spreadsheet will be connected in the order of the rows with the LineBuilder. i.e. in the order of Sequence 1, 2, 3, 4, 5, for each group. Isn't it correct order?

Can you please elaborate the problem more specifically?


mark2atsafe
Safer
Forum|alt.badge.img+46
  • Safer
  • January 14, 2022
alexlynch3450 wrote:

I attached workspace with wanted functionality.

Yes, I think the group-by option is the key to this scenario. If the data is in order too you could probably set the mode to "Process when Group Changes" for slightly better performance.


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