Formula to cacluate the Bearing angle in degrees between two points

2,395 views
Skip to first unread message

Arjuun Sethuraman

unread,
May 12, 2009, 3:04:30 AM5/12/09
to mapi...@googlegroups.com
Hi, 

I have a requirement where in I need to calculate the bearing angle in degree wrt N between two coordinates. I want a formula which would do that. The coordinates are in Deg Min Sec format. 

Someone kindly help me out..

Cheers
Arjuun

Robert Crossley

unread,
May 12, 2009, 3:19:50 AM5/12/09
to mapi...@googlegroups.com

Just working on it in SQL server now.  You didn’t mention what program you were working in?

 

This is the function in SQL for decimal degrees – you may have to preprocess to get to decimal degrees from minutes/ second.

 

ATan 2 function is not always available, but there is ways of workiing around it.  I think I have posted some in the past.

 

A good reference is:

http://www.movable-type.co.uk/scripts/latlong.html


No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.325 / Virus Database: 270.12.23/2106 - Release Date: 05/09/09 06:54:00

Arjuun Sethuraman

unread,
May 12, 2009, 3:22:17 AM5/12/09
to mapi...@googlegroups.com
I need this to be on a excel sheet. this is for a small temporary use. we are using mapinfo for plotting all the location. 

regards
arjuun

Robert Crossley

unread,
May 12, 2009, 3:28:09 AM5/12/09
to mapi...@googlegroups.com

The same formula should be available then.

Arjuun Sethuraman

unread,
May 12, 2009, 3:34:20 AM5/12/09
to mapi...@googlegroups.com
yeah it basically gives two things initial and final bearing angle. my requirement is this, i have a point to point radio, one at location A and location B. So i need to know in which direction I should point the radio in location A and location B. So once i enter the coordinates of location A and B. I want to know what direction i should point the radio at Location A. 

Gentreau

unread,
May 12, 2009, 4:52:09 AM5/12/09
to mapi...@googlegroups.com
Well that would be the initial bearing then, no ?


From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Arjuun Sethuraman
Sent: Tuesday, May 12, 2009 9:34 AM

nestor olfindo

unread,
May 12, 2009, 5:27:46 AM5/12/09
to mapi...@googlegroups.com
you can use the geodetic direct (or maybe the geodetic inverse) equation. the algorithm can be found in the net. vincenty's equation is a good choice.

nestor

Glen

unread,
May 12, 2009, 8:50:07 AM5/12/09
to MapInfo-L
the magical document has all the answeres you seek


http://williams.best.vwh.net/avform.htm#Crs

Glen

unread,
May 12, 2009, 8:58:36 AM5/12/09
to MapInfo-L
http://www.movable-type.co.uk/scripts/latlong.html << cool web page

that would make a great Excel sheet to keep with you??

Ian Tidy

unread,
May 12, 2009, 4:13:02 PM5/12/09
to mapi...@googlegroups.com, Ian Tidy

Be careful, aligning radio antenna with co-ordinates doesn't always give you the best signal strength.  I found that on shorter hauls (between 1 - 20k), in some environments, the antennas needed to be off centre.  And you have the added problem of measuring the same north in both your mapping system and onsite.

 

To calculate the angle between the sites have a look at:

http://www.teacherschoice.com.au/Maths_Library/Coordinates/polar_-_rectangular_conversion.htm or http://www.mathwords.com/p/polar_rectangular_conversion_formulas.htm or the results from http://www.google.com/search?q=polar+rectangular+conversion&rls=com.microsoft:en-US&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1

 

Hope this helps

 

Regards Ian

 

______________________
Ian Tidy
GIS Analyst / Developer
Works Asset Department
Napier City Council
Skype ian.tidy.ncc
mailto:ia...@napier.govt.nz
http://www.napier.govt.nz | http://maps.napier.govt.nz



This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal



This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal
######################################################################
Attention:
This e-mail message and accompanying data may contain information that
is confidential and subject to legal privilege. Any information
provided is given in good faith. However unless specifically stated to
the contrary, Napier City Council accepts no liability for the
content of this e-mail or for the consequences of any action taken on
the basis of the information provided, unless that information is
subsequently confirmed in writing. If you are not the intended recipient,
you are notified that any use, dissemination, distribution or copying
of this message or data is prohibited. If you received this e-mail
message in error, please notify us immediately and erase all copies
of this message and attachments. Thank you.
Reply all
Reply to author
Forward
0 new messages