Skip to main content
Question

Build line from non ordered point sequence

  • March 17, 2022
  • 3 replies
  • 20 views

boubcher
Contributor
Forum|alt.badge.img+11

Hello there

we have a set of points getting to the line builder, not in sequence

how we could organize them to build them straight line

pointwe are getting this from the line builder

line builder 2I think the line builder is connecting the point in the order they enter the linebuilder

Any idea

thanks

 

3 replies

geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • March 17, 2022

The LineBuilder does indeed connect the points in the order they enter (as is said in the documentation).

Would you like to create a 'best fitting' straight line? Or maybe sort the points first in ascending X and ascending Y, before they enter the LineBuilder?


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 212 replies
  • March 17, 2022

The LineBuilder does indeed connect the points in the order they enter (as is said in the documentation).

Would you like to create a 'best fitting' straight line? Or maybe sort the points first in ascending X and ascending Y, before they enter the LineBuilder?

@geomancer​  thanks Great approch

 


danminneyatsaf
Safer
Forum|alt.badge.img+13

Hi @boubcher​, if the points you are trying to connect have an attribute that defines the order of the points, you can use a Sorter to sort the points by that attribute before connecting them to the LineBuilder.