Question

Retrieving digitization direction as an attribute value

  • 19 March 2015
  • 2 replies
  • 0 views

Badge
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

Userlevel 4
Hi,

 

 

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

 

 

David
Badge +3
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.

 

 

 

 

Reply