Subject: | Documentation error for Geo::Point? |
Date: | Wed, 19 Jun 2019 00:59:17 +0000 |
To: | "bug-Geo-Point [...] rt.cpan.org" <bug-Geo-Point [...] rt.cpan.org> |
From: | "Rowe, Thomas" <rowet [...] metsci.com> |
use warnings;
use strict;
use v5.14;
use autodie;
use Geo::Proj;
use Geo::Point;
my $wgs84 = Geo::Proj->new
( nick => 'wgs84',
proj4 => '+proj=latlong +datum=WGS84 +ellps=WGS84' );
my $eqc = Geo::Proj->new
( nick => 'eqc',
proj4 => '+proj=eqc +datum=WGS84 +ellps=sphere +lat_ts=0' );
my $point_wgs84 = Geo::Point->latlong(56.12, 4.40, 'wgs84');
my $point_eqc = $point_wgs84->in('eqc'); # works
$point_eqc = $point_wgs84->in($eqc); # dies with: proj parameter must be a label, not a Geo::Proj object at error2.pl line 20