Question

Calculate delta distance between two points

  • 16 January 2019
  • 5 replies
  • 7 views

Badge

Dear FME community.

I try to calculate distance between a suit of points like that :

For that I make a sorter > counter and I try an AttributeCreator without success.

Have you got an idea ?

Thanks for your help


5 replies

Badge +10

In your example, the distance between 2 & 3 isn't 10....

If you know the formula to calculate distances between coordinates then look at the adjacent attribute handling in the attributecreator. This will allow you to reference the the coordinates of the adjacent feature in the expression

Badge

In your example, the distance between 2 & 3 isn't 10....

If you know the formula to calculate distances between coordinates then look at the adjacent attribute handling in the attributecreator. This will allow you to reference the the coordinates of the adjacent feature in the expression

Dear @egomm, thanks for your response.

This is an example with fictive distances, but this is the global idea :-)

Badge +10

Did you look at Adjacent Feature Attributes?

Badge +10

Dear @egomm, thanks for your response.

This is an example with fictive distances, but this is the global idea :-)

Did you look at Adjacent Feature Attributes?

Userlevel 2
Badge +17

Did you look at Adjacent Feature Attributes?

Agree. Alternatively, the @hypot function can be used. cf. Math Functions

Reply