Skip to main content
Question

Retrieving digitization direction as an attribute value


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!

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.

 

 

 

 

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