Message-ID: <Pine.LNX.4.64.0709271936160.7163@reclus.nhh.no>
Date: 2007-09-27T17:40:22Z
From: Roger Bivand
Subject: LL from bearing and distance
In-Reply-To: <46FBD279.3040104@noaa.gov>
On Thu, 27 Sep 2007, Eric Archer wrote:
> Is there a package that contains a function that will allow me to calculate
> the ending latitude and longitude given a starting point on the earth's
> surface and bearing and distance? I have searched the archives but have been
> unable to find one and would like to double check before I try to roll my
> own. Thanks for any pointers.
Nothing for this case - azimuth for two points is in gzAzimuth() in
maptools, so that might be a way in. There is C code for the spDistsN1()
function in the sp package, visible in the CVS repository at the r-spatial
site at sourceforge, but neither of these meets your need directly. If you
do "roll your own", please consider contributing to maptools.
Roger
>
> Cheers,
> eric
>
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no