Velocity Reviews > Perl > Cartesian to lat and lon

Cartesian to lat and lon

Andrew Rich
Guest
Posts: n/a

 09-07-2008
Hello

I have had success going from lat and lon to bearing and distance from a
known point.

Now I have a need to go the other way.

Given a known point, and given the bearing and distance, calculate the lat
and lon.

Ideas ?

Maybe there is a module that does this ?

Andrew

Mark Clements
Guest
Posts: n/a

 09-07-2008
Andrew Rich wrote:
> Hello
>
> I have had success going from lat and lon to bearing and distance from a
> known point.
>
> Now I have a need to go the other way.
>
> Given a known point, and given the bearing and distance, calculate the lat
> and lon.
>
> Ideas ?
>
> Maybe there is a module that does this ?

search.cpan.org

Mark

Zed Pobre
Guest
Posts: n/a

 09-08-2008
Andrew Rich <(E-Mail Removed)> wrote:
>
> I have had success going from lat and lon to bearing and distance from a
> known point.
>
> Now I have a need to go the other way.
>
> Given a known point, and given the bearing and distance, calculate the lat
> and lon.
>
> Ideas ?
>
> Maybe there is a module that does this ?

I suspect that what you want is Geo:irection:istance.

If it isn't, searching CPAN for "Geo Distance" should bring up quite a
few other tools.

--
Zed Pobre <(E-Mail Removed)> a.k.a. Zed Pobre <(E-Mail Removed)>
PGP key and fingerprint available on finger; encrypted mail welcomed.

Jim Gibson
Guest
Posts: n/a

 09-08-2008
In article <48c34c6a\$(E-Mail Removed)>, Andrew Rich
<(E-Mail Removed)> wrote:

> Hello
>
> I have had success going from lat and lon to bearing and distance from a
> known point.
>
> Now I have a need to go the other way.
>
> Given a known point, and given the bearing and distance, calculate the lat
> and lon.
>
> Ideas ?
>
> Maybe there is a module that does this ?

There are several. I wrote one called Geo::Ellipsoid and submitted it
to CPAN. I have been using it for several years. I would be glad to
help you with it if you have any problems using it.

Other modules that do the same thing are Geo::Forward and
Geo:irection:istance. They all give comparable results, according
to my admittedly short tests.

--
Jim Gibson

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Hasham Malik Ruby 0 04-08-2010 02:17 PM tmacinlex@gmail.com Computer Support 3 10-07-2007 12:53 PM tmacinlex@gmail.com Computer Support 3 10-02-2007 02:09 AM DVD Verdict DVD Video 0 12-18-2003 10:05 AM Ed Luskey DVD Video 0 10-30-2003 09:53 PM