Is there a way (without survey analysist) to create a line bearing from an existing line file? Once this has been created I was planning on joining the line bearing to a point feature so I can label the point feature with the rotation field defined by the line bearing?
Mapping Center Answer:
There is a tool in 9.3 called Calculate Geodesic Angle--it requires an ArcInfo license.
If that doesn't do what you need, you won't be set up an attribute with this information without writing a script to determine the bearings--though it is possible using either ArcObjects or Python. The main issue is sorting out the possibilities for what your line dataset contains in terms of lines and rules for each case:
1. Two-point lines--this is easy, just calculate the slope to determine the bearing.
2. Three-plus-point polylines--do you want the first and last point? Should you break these into segments?
3. Multi-part polylines--meaning several non-coterminous line segments existing within the same feature--minimally you'd want to know when each feature's part count is greater than 1. Use the Multipart to Singlepart tool to fix this, but you'd also likely want to do some attribute management with the results.
Also, check ArcScripts to see if anyone has already done this or something like it.
If you would like to post a comment, please login.