Select to view content in your preferred language

bearings of points to polyline

428
3
01-17-2014 10:17 AM
denisachu
Deactivated User
Hi all, I am trying to find a tool in ArcGIS 10.1 that will give the bearing of points located on both sides along a polyline. The polyline is not straight. I have used a number of tools already that give me the angles but they are not consistent since the polyline is not straight. I will like to be able to give a direction to each of the points when standing at any point on the line closest to a given point. Thanks in advance for the badly needed help.
0 Kudos
3 Replies
RamB
by
Frequent Contributor
Please use the NEAR tool. As a result, it give you an angle ("near_angle"). Later make a new field and use the following logic in field calculator (you will have to adapt it to your comfortable language, python or vb):

If near_angle < 0 then bearing = 360 - near_angle

else bearing = 90 - near_angle

Solved.

regards,
0 Kudos
denisachu
Deactivated User
Hi bsriramak ,
Thanks a lot. I used the near tool earlier but did not figure out exactly what the angles meant. I will employ this idea now and hopefully, I should be happy with the results.
Regards,
Denis
0 Kudos
RamB
by
Frequent Contributor
Oki. You have to 'check the box' to calculate angle in the near tool. after calculation, in the attribute table you will get a field 'near_angle'. It is an angle measured from the x axis, so a bearing of 90º is 0º on 'near-angle' . So I suggested that logic. If you are successful, please mark the answer. Else ask  for more 🙂

regards,
0 Kudos