Skip to main content
Question

Calculate delta distance between two points


geo-x
Contributor
Forum|alt.badge.img+1
  • Contributor

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

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • January 16, 2019

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


geo-x
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • January 16, 2019
ebygomm wrote:

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 :-)


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • January 16, 2019

Did you look at Adjacent Feature Attributes?


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • January 16, 2019
geo-x wrote:

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?


takashi
Influencer
  • January 16, 2019
ebygomm wrote:

Did you look at Adjacent Feature Attributes?

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


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