Skip to main content
Question

Sort point features by distance between each other

  • April 9, 2021
  • 1 reply
  • 70 views

bgeorges
Contributor
Forum|alt.badge.img+5

I have a bunch of points features in input and I would like to sort them by distance between each other so the next row in the excel sheet in output would be the point the closest to the previous row.

 

How can I achieve that with FME?

1 reply

DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • April 12, 2021

Hi @bgeorges​ You can get the distance between features with the NeighborFinder transformer. However, the distance between the two closest features will be the same - so which comes first? Sorting by those distances will group points in pairs. I've attached a workspace which demonstrates this but also a second method of finding the two closest points and then sorting by the sum of those two distances.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings