AnsweredAssumed Answered

Calculation to get compass bearing from Lat / Longs in point file

Question asked by TravelingChick3 on May 27, 2018
Latest reply on May 28, 2018 by Dan_Patterson

I'm trying to build an animation, and I want my symbol (a ship) to 'sail' in the correct direction, so I need to vary rotation by a field - in my case, compass bearing to the next point. The data is a point file with Lat, Long, elevation and time (sequential points along a sailing route). Is there a way to calculate the bearing fro one point to the next for each sequential point in my file?

I can find a few formulas online to do it from A-->B, but I have no idea how to implement in a 'calculate field' scenario using arcpy or java or anything else.

As a secondary issue, I would also like to create 'cumulative time' field that adds up the time from point to point so I'll have a total elapsed time. I've attached the data-->export from the attribute table.

Attachments

Outcomes