NAME
Geo::Geos::Precision::SimpleGeometryPrecisionReducer - Reduces the precision of a Geometry.
SYNOPSIS
use Geo::Geos::Coordinate;
use Geo::Geos::PrecisionModel;
use Geo::Geos::Precision::SimpleGeometryPrecisionReducer;
my $pm = Geo::Geos::PrecisionModel->new(2);
my $pr = Geo::Geos::Precision::SimpleGeometryPrecisionReducer->new($pm);
my $gf = Geo::Geos::GeometryFactory::create();
my $c1_1 = Geo::Geos::Coordinate->new(0.123,1);
my $c1_2 = Geo::Geos::Coordinate->new(1.348,1);
my $ls1 = $gf->createLineString([$c1_1, $c1_2], 2);
$pr->setRemoveCollapsedComponents(1);
$pr->getRemoveCollapsed; # => 1
$pr->getPrecisionModel; # => isa 'Geo::Geos::PrecisionModel'
$pr->reduce($ls1); # => isa 'Geo::Geos::Geometry'
SEE ALSO (C++ classes docs)
geos::precision::GeometryPrecisionReducer
SEE ALSO
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.