Skip Menu |

This queue is for tickets about the Geo-Coordinates-RDNAP CPAN distribution.

Report information
The Basics
Id: 28589
Status: resolved
Priority: 0/
Queue: Geo-Coordinates-RDNAP

People
Owner: Nobody in particular
Requestors: p.b.van.den.berg [...] rug.nl
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: meters or kilometers in Geo::Coordinates::RDNAP ?
Date: Tue, 31 Jul 2007 16:22:24 +0200
To: bug-Geo-Coordinates-RDNAP [...] rt.cpan.org
From: Paul B van den Berg <p.b.van.den.berg [...] rug.nl>
From synopsis: my ($lat, $lon, $h) = from_rd( 150, 480, -2.75 ); but $ perl -e "use Geo::Coordinates::RDNAP qw/from_rd/; print from_rd(150,480);" produces: Geo::Coordinates::RDNAP::from_rd: Y out of bounds: 480 at -e line 1 In the description of from_rd(...) you write: This should only be used for points in or close to the Netherlands. For this area, X should roughly be between 0 and 300_000, and Y between 300_000 and 650_000. I think 300_000 should be 300000, and 650_000 should be 650000. Regards, Paulb
In Perl, 300_000 is the same as 300000, so the description of from_rd is correct. The call in the synopsis is wrong: it shoud be from_rd( 150_000, 480_000, -2.75 ) instead of from_rd( 150, 480, -2.75 ). I have fixed this in version 0.11, which I have just uploaded to CPAN. Thank you for your report. Eugene