Geo::Geos::Coordinate - The lightweight class used to store coordinates.
use Geo::Geos::Coordinate; my $c_3d = Geo::Geos::Coordinate->new(1,2,3); $c_3d->x; # => 1; $c_3d->y; # => 2; $c_3d->z; # => 3; my $c2 = Geo::Geos::Coordinate->new(1,2,3); $c2->equals($c_3d); # => success $c2->equals2D($c_3d); # => success $c2->equals3D($c_3d); # => success $c2->compareTo($c_3d); # => 0 $c2->distance($c_3d); # => 0 $c2->isNull; # '' my $c_2d = Geo::Geos::Coordinate->new(1,2); $c_2d->x; # => 1; $c_2d->y; # => 2; $c_2d->z; # => 'NaN'; $c_2d->toString; # => '1 2' $c_2d->x(8); $c_2d->x; # => 8;
GEOS C++ Library
geos::geom::Coordinate
Geo::Geos
Geo::Geos::Algorithm
Ivan Baidakou <i.baydakov@crazypanda.ru>, Crazy Panda, CP Decision LTD
You may distribute this code under the same terms as Perl itself.
To install Geo::Geos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Geos
CPAN shell
perl -MCPAN -e shell install Geo::Geos
For more information on module installation, please visit the detailed CPAN module installation guide.