Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lloyd Sumpter
 
Posts: n/a
Default Calculating distance from Lat/Long

Hi,

I'm writing a program for Linux that displays position (from GPS) on a
scanned-in chart, and would like it to calculate distance from current
position to the cursor.

How do you calculate distance between two points using lat/long? If
they're due North/South, I can do it ( 1 minute of lat = 1 NM) but how do
you calculate distance from longitude? Perhaps some formula based on the
circumfrence of the Earth at the equator and the latitude?

Lloyd Sumpter

  #2   Report Post  
otnmbrd
 
Posts: n/a
Default Calculating distance from Lat/Long


If you have a Bowditch, look under "Sailings" or look in Bowditch online
for the same info.
What you need will be in there.

otn

Lloyd Sumpter wrote:
Hi,

I'm writing a program for Linux that displays position (from GPS) on a
scanned-in chart, and would like it to calculate distance from current
position to the cursor.

How do you calculate distance between two points using lat/long? If
they're due North/South, I can do it ( 1 minute of lat = 1 NM) but how do
you calculate distance from longitude? Perhaps some formula based on the
circumfrence of the Earth at the equator and the latitude?

Lloyd Sumpter


  #3   Report Post  
SpamJam
 
Posts: n/a
Default Calculating distance from Lat/Long

You want http://williams.best.vwh.net/avform.htm

"Lloyd Sumpter" wrote in message
news
Hi,

I'm writing a program for Linux that displays position (from GPS) on a
scanned-in chart, and would like it to calculate distance from current
position to the cursor.

How do you calculate distance between two points using lat/long? If
they're due North/South, I can do it ( 1 minute of lat = 1 NM) but how do
you calculate distance from longitude? Perhaps some formula based on the
circumfrence of the Earth at the equator and the latitude?

Lloyd Sumpter



  #4   Report Post  
Lloyd Sumpter
 
Posts: n/a
Default Calculating distance from Lat/Long


That will do it - thanks! Curious about how those formulae were developed,
though...

Lloyd


On Thu, 04 Dec 2003 14:46:15 +0000, SpamJam wrote:

You want http://williams.best.vwh.net/avform.htm

"Lloyd Sumpter" wrote in message
news
Hi,

I'm writing a program for Linux that displays position (from GPS) on a
scanned-in chart, and would like it to calculate distance from current
position to the cursor.

How do you calculate distance between two points using lat/long? If
they're due North/South, I can do it ( 1 minute of lat = 1 NM) but how do
you calculate distance from longitude? Perhaps some formula based on the
circumfrence of the Earth at the equator and the latitude?

Lloyd Sumpter


  #5   Report Post  
Steve
 
Posts: n/a
Default Calculating distance from Lat/Long


"Lloyd Sumpter" wrote in message
news

That will do it - thanks! Curious about how those formulae were developed,
though...


I once tried to imagine Bowditch working and refining his tables and
formulas manually. Must have been total dedication.

Steve
s/v Good Intentions
Lloyd


On Thu, 04 Dec 2003 14:46:15 +0000, SpamJam wrote:

You want http://williams.best.vwh.net/avform.htm

"Lloyd Sumpter" wrote in message
news
Hi,

I'm writing a program for Linux that displays position (from GPS) on

a
scanned-in chart, and would like it to calculate distance from current
position to the cursor.

How do you calculate distance between two points using lat/long? If
they're due North/South, I can do it ( 1 minute of lat = 1 NM) but how

do
you calculate distance from longitude? Perhaps some formula based on

the
circumfrence of the Earth at the equator and the latitude?

Lloyd Sumpter






  #6   Report Post  
Dan Best
 
Posts: n/a
Default Calculating distance from Lat/Long

Lloyd Sumpter wrote:

That will do it - thanks! Curious about how those formulae were developed,
though...


Spherical Trigonometry - not for the fain of heart.
--
Dan Best - (707) 431-1662, Healdsburg, CA 95448
B-2/75 1977-1979
Tayana 37 #192, "Tricia Jean"
http://rangerbest.home.comcast.net/TriciaJean.JPG

  #7   Report Post  
Brian Whatcott
 
Posts: n/a
Default Calculating distance from Lat/Long

It's an academic topic called "Spherical Geometry"
There is a plane which cuts the two coordinate pairs and the Earth
center. A 'triangle' is drawn from the center and the two given
points. The included angle is found from which the great circle
distance is derived.

Brian Whatcott

On Thu, 04 Dec 2003 14:57:11 -0800, "Lloyd Sumpter"
wrote:


That will do it - thanks! Curious about how those formulae were developed,
though...

Lloyd


On Thu, 04 Dec 2003 14:46:15 +0000, SpamJam wrote:

You want http://williams.best.vwh.net/avform.htm

"Lloyd Sumpter" wrote in message
news
Hi,

I'm writing a program for Linux that displays position (from GPS) on a
scanned-in chart, and would like it to calculate distance from current
position to the cursor.

How do you calculate distance between two points using lat/long? If
they're due North/South, I can do it ( 1 minute of lat = 1 NM) but how do
you calculate distance from longitude? Perhaps some formula based on the
circumfrence of the Earth at the equator and the latitude?

Lloyd Sumpter


  #8   Report Post  
Jim Thompson
 
Posts: n/a
Default Calculating distance from Lat/Long

Huh? The earth isn't flat? When did that happen? (tic)

  #9   Report Post  
Steve
 
Posts: n/a
Default Calculating distance from Lat/Long

Dumb Ass! It's round. Kinda like a dinner plate. Be careful when you get
close to the edge.

When Joshua Slocum was sailing around the world and meet a head of state in
some island nation, that was the excepted explanation.

Steve
s/v Good Intentions


  #10   Report Post  
Steve
 
Posts: n/a
Default Calculating distance from Lat/Long

Dumb Ass! It's round. Kinda like a dinner plate. Be careful when you get
close to the edge.

When Joshua Slocum was sailing around the world and meet a head of state in
some island nation, that was the excepted explanation.

Steve
s/v Good Intentions




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Long Distance carrier for cruisers? J K General 0 September 1st 03 04:25 PM


All times are GMT +1. The time now is 03:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 BoatBanter.com.
The comments are property of their posters.
 

About Us

"It's about Boats"

 

Copyright © 2017