Skip to main content

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!

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


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.


I attached workspace with wanted functionality.


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?


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.


Reply