Skip to main content
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!
Hi,

 

 

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

 

 

David
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