Skip to main content
Solved

How to Generate multiples lines from sequenced points

  • January 10, 2022
  • 5 replies
  • 37 views

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.

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.

5 replies

DanAtSafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 345 replies
  • January 10, 2022

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


  • Author
  • 1 reply
  • 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+15
  • Contributor
  • 68 replies
  • Best Answer
  • January 11, 2022

I attached workspace with wanted functionality.


takashi
Celebrity
  • 7843 replies
  • 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.

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+56
  • Safer
  • 2554 replies
  • January 14, 2022

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.