Subject: | at() method now returns longitude values > 180 |
Date: | Thu, 29 May 2008 11:29:04 +0100 |
To: | <bug-geo-ellipsoid [...] rt.cpan.org> |
From: | "Derren Phillips" <derren.phillips [...] satamatics.com> |
I've recently updated my copy of Geo::Ellipsoid.pm to version 1.0, and
the behaviour of the at() method seems to have changed; it now returns
longitude values greater than 180 degrees, rather than negative values.
For example:
#!/usr/bin/perl -w
use strict;
use Geo::Ellipsoid;
my $geo = Geo::Ellipsoid->new(ellipsoid => 'WGS84', units =>
'degrees');
my ($lat, $lon) = $geo->at(52, -2, 100, 45);
print "$lat, $lon\n";
The above code prints "52.0006354979386, -1.9989703884374" with version
0.904, but "52.0006354979386, 358.001029611563" with the latest release.
Regards,
Derren Phillips
--
Satamatics Limited
Miller Court; Severn Drive
Tewkesbury
Gloucestershire
GL20 8DN, UK
Tel: +44 (0)1684 278610
Fax: +44 (0)1684 278611
Web: www.satamatics.com