Professional Documents
Culture Documents
Rumus Azimuth
Rumus Azimuth
Pyton
Expression :
GetAzimuthPolyline( !Shape!)
Code Block :
import math
def GetAzimuthPolyline(shape):
radian = math.atan((shape.lastpoint.x - shape.firstpoint.x)/(shape.lastpoint.y -
shape.firstpoint.y))
degrees = radian * 180 / math.pi
return degrees