Skip to main content
Solved

Get distance between multipoints within a feature in meters. Attached is file with testdata.

  • September 14, 2021
  • 5 replies
  • 4 views

mikamattila
Contributor
Forum|alt.badge.img
Get distance between multipoints within a feature in meters. Attached is file with testdata.

Best answer by geomancer

Like @f.kemminje​ says, use Deaggregator and LineBuilder (group by attribute externid). But as your data is in a geographic coordinate system, use GeographicLengthCalculator instead of LengthCalculator.

Some of the multipoints contain identical points, so look into the setting of the LineBuilder to Remove Duplicate Points.

mikamatilla_Data

View original
Did this help you find an answer to your question?

5 replies

geomancer
Evangelist
Forum|alt.badge.img+48
  • Evangelist
  • September 14, 2021

Convert your multipoints into lines, then use the GeographicLengthCalculator (from FME Hub) to calculate the distance in meters.


f.kemminje
Contributor
Forum|alt.badge.img+11
  • Contributor
  • September 14, 2021

Counter​

 

De aggregate it

 

Line joiner ​group based

Length calculator

Feature merger if you ​want

bring back original points

Use counter attribute​


geomancer
Evangelist
Forum|alt.badge.img+48
  • Evangelist
  • Best Answer
  • September 15, 2021

Like @f.kemminje​ says, use Deaggregator and LineBuilder (group by attribute externid). But as your data is in a geographic coordinate system, use GeographicLengthCalculator instead of LengthCalculator.

Some of the multipoints contain identical points, so look into the setting of the LineBuilder to Remove Duplicate Points.

mikamatilla_Data


mikamattila
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • September 15, 2021
geomancer wrote:

Like @f.kemminje​ says, use Deaggregator and LineBuilder (group by attribute externid). But as your data is in a geographic coordinate system, use GeographicLengthCalculator instead of LengthCalculator.

Some of the multipoints contain identical points, so look into the setting of the LineBuilder to Remove Duplicate Points.

mikamatilla_Data

Hello,

 

Thank you it worked perfectly! :)


geomancer
Evangelist
Forum|alt.badge.img+48
  • Evangelist
  • September 15, 2021
geomancer wrote:

Like @f.kemminje​ says, use Deaggregator and LineBuilder (group by attribute externid). But as your data is in a geographic coordinate system, use GeographicLengthCalculator instead of LengthCalculator.

Some of the multipoints contain identical points, so look into the setting of the LineBuilder to Remove Duplicate Points.

mikamatilla_Data

Good to hear, glad to be of help!


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