How do I determine the direction (bearing) of a line in ArcMap 10.3?
Hi Cameron, try putting this in the field calculator:
Field (type double) = NorthAzimuth( !Shape! )
degBearing = math.degrees(math.atan2((Pline.lastPoint.X - Pline.firstPoint.X (Pline.lastPoint.Y - Pline.firstPoint.Y)))
if (degBearing < 0):
degBearing += 360.0
For a quick way to get at the bearing you can edit your layer select a template and click on the beginning of the line, snap to the end of the line but don't click, right click and select "Direction". You can also use ctrl+a instead of right clicking. If the bearing isn't in the correct format you can go to Editor- Options - Units and change the Direction Type setting to be what you need. Most bearings for property and such are in quadrant bearing.
I hope that helps.
You could also try the Add Geometry Attributes tool with the 'LINE_BEARING' property selected (Data Management Tools > Features). This tool will use the "start-to-end" bearing, which means the bearing will be determined based on the order the vertices were created.
Add Geometry Attributes—Help | ArcGIS for Desktop
Retrieving data ...