Does anyone have a script or know of a tool that can calculate incidence angle between line segments? I've done some searching and there does not appear to be a tool that can do this. Also, there are other solutions but none that compare line segments that are coincident to each other. In this case, it is a collection of transmission lines that are separated by poles (nodes) and need to know when an incidence angle is greater than 30 degrees between one arc (line segment) and the next coincident arc (line segment).
Thank-you,
Jim Fritz
Solved! Go to Solution.
You did not check the Python option at the top of the Field Calculator. The code will definitely not work if the VB Script option is checked.
Python is case sensitive. I would have written it as:
shape.firstPoint.X
Note P and X are upper case.
OK, that's the first part of my original question: how to assign the incidence angle between adjacent vectors to the point in-between both?
Re-thinking what is needed is not necessarily the point receiving the incidence angle but instead assigning the polyline layer an attribute with the value of the difference between adjacent vector angles. So, in the example above, without doing the math it appears that the incidence angle would be nearly 90 degrees. (The angle measurements appear to be from the X-axis.) Once that value is computed a query showing which vectors have an incidence angle greater than or equal to 30 degrees could be made.
Any thoughts about the math needed to compute this value would be appreciated. High school geometry re-visited!
Also see: https://community.esri.com/thread/20473