[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdal-dev
Subject:    [gdal-dev] Lat/long & distance/heading calculation
From:       Allan.Meek () drdc-rddc ! gc ! ca (Meek, Allan (Contractor))
Date:       2008-01-29 10:22:27
Message-ID: DF1471B5C308B346BF5A2AEA00C5615E1099CA () ottawaex02 ! Ottawa ! drdc-rddc ! gc ! ca
[Download RAW message or body]

Thanks to everybody for the replies. I had actually found the formula
for distance between 

two lat-lon coordinates on this page. If only I'd scrolled down a little
bit, I'd have found this 

formula!

 

Allan

 

________________________________

From: Lennox Antoine [mailto:lxnyce@gmail.com] 
Sent: January 28, 2008 8:46 PM
To: Ray Gardener
Cc: Meek, Allan (Contractor); gdal-dev@lists.osgeo.org
Subject: Re: [gdal-dev] Lat/long & distance/heading calculation

 

This might be what you're looking for :
http://www.movable-type.co.uk/scripts/latlong.html

Look for the section : Destination point given distance and bearing from
start point

-Lennox

On Jan 28, 2008 7:55 PM, Ray Gardener <rayg@daylongraphics.com> wrote:

If you can use UTM or similar coords, then

x = cos(heading) * distance + start_pos_x
y = sin(heading) * distance + start_pos_y

Assuming heading in clockwise radians with north = up.

Then you can inverse transform (x, y) from UTM to lat/lon.

Ray






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080129/b913e033/attachment-0001.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic