NAME

Geo::Geos::PrecisionModel - Specifies the precision model of the Coordinate in a Geometry.

SYNOPSIS

use Geo::Geos::PrecisionModel;

Geo::Geos::PrecisionModel->new;                          # => isa 'Geo::Geos::PrecisionModel'
Geo::Geos::PrecisionModel->new(TYPE_FLOATING);           # => isa 'Geo::Geos::PrecisionModel'
Geo::Geos::PrecisionModel->new(TYPE_FLOATING_SINGLE);    # => isa 'Geo::Geos::PrecisionModel'
Geo::Geos::PrecisionModel->new(TYPE_FIXED);              # => isa 'Geo::Geos::PrecisionModel'
Geo::Geos::PrecisionModel->new(2.0);                     # => isa 'Geo::Geos::PrecisionModel'

my $pm_fixed = Geo::Geos::PrecisionModel->new(2.0);
$pm_fixed->getScale;    # => 2.0
$pm_fixed->isFloating;  # => ''
$pm_fixed->getType;     # => TYPE_FIXED

my $pm = Geo::Geos::PrecisionModel->new;
$pm->getMaximumSignificantDigits();     # => 16
$pm->makePrecise(1.000001);             # => 1.000001

$pm->compareTo($pm_fixed);  # => 1

SEE ALSO (C++ classes docs)

GEOS C++ Library

geos::geom::PrecisionModel

EXPORTS CONSTANTS

TYPE_FIXED
TYPE_FLOATING
TYPE_FLOATING_SINGLE

SEE ALSO

Geo::Geos

Geo::Geos::Precision

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.