Skip to main content
Question

Retrieving digitization direction as an attribute value

  • March 19, 2015
  • 2 replies
  • 47 views

Forum|alt.badge.img
Hi there,

 

 

If you look at some of the Format Attributes in FME such as fme_basename, and fme_feature_type and so on, it got me wondering if there is a format attribute that reveals the digitization direction of line geometries in a shape file.

 

 

If a format attribute is not the answer, is there any other way to expose this value as an attribute?

 

 

Thanks in advance!
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.

2 replies

david_r
Celebrity
  • March 19, 2015
Hi,

 

 

have a look at the AzimuthCalculator (https://store.safe.com/transformers/AzimuthCalculator.htm) from the FME Store.

 

 

David

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • March 19, 2015
Hi,

 

 

Direction is revealed by the order and position of the start and endpoint of a line.

 

With those two points you can calculate the angle. Basic Goniometry. (if you dont know goniometry, you can use the AzimuthCalculator.)

 

Then you nee to determine in wich kwadrant the angle is.

 

Remember that azimuth is from North over East (clockwise).

 

Whilst angel is mathimatical, 0 to 360 anti-clockwise.