=head1 NAME

Geo::Geos::Precision::SimpleGeometryPrecisionReducer - Reduces the precision of a Geometry.

=head1 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'


=head1 SEE ALSO (C++ classes docs)

L<GEOS C++ Library|https://trac.osgeo.org/geos>

geos::precision::GeometryPrecisionReducer

=head1 SEE ALSO

L<Geo::Geos>

L<Geo::Geos::Precision>

L<Geo::Geos::PrecisionModel>

=head1 AUTHOR

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

=head1 LICENSE

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

=cut
