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.


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
  • 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+54

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.


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