The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

NAME

Geo::Geos::Coordinate - The lightweight class used to store coordinates.

SYNOPSIS

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;

SEE ALSO (C++ classes docs)

GEOS C++ Library

geos::geom::Coordinate

SEE ALSO

Geo::Geos

Geo::Geos::Algorithm

AUTHOR

Ivan Baidakou <i.baydakov@crazypanda.ru>, Crazy Panda, CP Decision LTD

LICENSE

You may distribute this code under the same terms as Perl itself.