Question

Closest Matching Curve to Series of Points

  • 14 March 2023
  • 1 reply
  • 1 view

Badge +1

I've been trying to match the closest curve to a series a points.

I tried the NeighbourFinder with ListStatistics and a Sorter, but it wasnt giving good matches to the points I have (likely because it's looking at points in all directions, not just points perpendicular to the curves).

 

Any ideas how to match the curve closest to the points?

Curves are grouped by _segment_id.


1 reply

Userlevel 5
Badge +29

Thanks for including the data, its always good to see what's being input.

 

You've got 100s of curves all stacked on top of each other, are you trying to find the curve that best fits the points? eg the red line?image 

Something like this starts to get you pretty close

image

Reply