Skip to main content
Question

Calculate delta distance between two points

  • Jan 16, 2019 10:59 AM UTC
  • 5 replies
  • 154 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
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Jan 16, 2019 11:14 AM UTC

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
  • Jan 16, 2019 11:49 AM UTC

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
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Jan 16, 2019 12:00 PM UTC

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?


ebygomm
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Jan 16, 2019 12:00 PM UTC

Did you look at Adjacent Feature Attributes?


takashi
Celebrity
  • Jan 16, 2019 10:12 PM UTC

Did you look at Adjacent Feature Attributes?

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