Skip to main content
Question

Calculate delta distance between two points

  • January 16, 2019
  • 5 replies
  • 99 views

geo-x
Supporter
Forum|alt.badge.img+6

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

ebygomm
Influencer
Forum|alt.badge.img+45
  • 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
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • 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

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+45
  • Influencer
  • January 16, 2019

Did you look at Adjacent Feature Attributes?


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

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
Celebrity
  • January 16, 2019

Did you look at Adjacent Feature Attributes?

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