Question

Build line from non ordered point sequence

  • 17 March 2022
  • 3 replies
  • 5 views

Badge +10

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

Userlevel 4
Badge +36

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?

Badge +10

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

 

Userlevel 2
Badge +10

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.

Reply