Hello i have a point and i want to create polylines for every 5o from 180o to 360o (north azimuth). How can i do that with azimuth and bearings?
Here's how you can automate this with arcpy geometry objects:
>>> import math
>>> length = 100000
>>> lines = 
>>> degrees = 5
>>> with arcpy.da.SearchCursor("YOUR_POINT_LAYER_NAME_HERE","SHAPE@") as cursor:
... for row in cursor:
... for i in range(360/degrees):
... dx = math.cos(math.radians(i*degrees))*length
... dy = math.sin(math.radians(i*degrees))*length
... startPoint = row.centroid
... endPoint = arcpy.Point(row.centroid.X+dx,row.centroid.Y+dy)
... line = arcpy.Polyline(arcpy.Array([startPoint,endPoint]))
edit: I just read the point about limiting between 180 and 360. This can be incorporated into the above script.
if you want geodesic line features, check the help top here on distance and bearing
THAT WAS HELP F U L L !
Retrieving data ...