[gdal-dev] Lat/long & distance/heading calculation
Ray Gardener
rayg at daylongraphics.com
Mon Jan 28 19:55:49 EST 2008
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
Meek, Allan (Contractor) wrote:
> This is a bit of a long shot, but I'm hoping I might find some help
> here.
>
> I have a start lat/long position, a distance, and a heading. Is there an
> easy way (in OGR or elsewhere) to calculate the end lat/long position
> (after travelling the given distance on the given heading)?
>
> I have a working formula for calculating the distance and heading
> between two lat/long positions, but I wanted to see if I can get around
> having to rework this to solve my problem.
>
> Any help would be appreciated!
>
> Thanks,
> Allan
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
More information about the gdal-dev
mailing list