Bug#1031666: Missing Dependencies: Geo::Point

Florian Schlichting fsfs at debian.org
Sat Oct 21 23:52:23 BST 2023


Hi,

On Mon, Feb 20, 2023 at 07:10:49AM +0800, Dan Jacobson wrote:
> Package: libgis-distance-perl
> Version: 0.19-2
> 
> Man page has
>            my $point1 = Geo::Point->latlong( $lat1, $lon1 );
> but
> Can't locate object method "latlong" via package "Geo::Point" (perhaps
> you forgot to load "Geo::Point"?)
> 
> Therefore where to get Geo::Point should at least be in the Package Recommends.
> 
> No, it's not in libgeo-distance-perl.

it's in its own distribution, Geo::Point, see
https://metacpan.org/dist/Geo-Point/view/lib/Geo/Point.pod, which is not
currently packaged for Debian. However that's just sugar because, as the
manpage explains, you can just feed the decimal latitude and longitude
to the distance method directly:

    # Returns a Class::Measure object.
    my $distance = $gis->distance( $lat1, $lon1, $lat2, $lon2 );

Florian



More information about the pkg-perl-maintainers mailing list