Skip to main content
Question

How to find the distance between two point efficiently. Have used Linebuilder with a larger dataset and it takes ages, workspace with test data is attached.

  • October 18, 2021
  • 2 replies
  • 31 views

mikamattila
Contributor
Forum|alt.badge.img
How to find the distance between two point efficiently. Have used Linebuilder with a larger dataset and it takes ages, workspace with test data is attached.

2 replies

david_r
Celebrity
  • 8392 replies
  • October 18, 2021

You can also try using a NeighborFinder with a Group By on a common attribute. Just make sure that the maximum distance is sufficient to account for the longest possible line. You'll get the distance as an attribute "_distance".


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • October 18, 2021

Thanks for the complete set of test data. If you upload a workspace template (fmwt) the data is already added, you don't need to upload is separately.

 

If I test this the GeographicLengthCalculator is slowing down the process, not the LineBuilder. This is because every line is being reprojected from LL84 to _AZMED_, measured and then restored to the original geometry.

 

I'm not sure if I know a faster way to solve this.