The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

Geo::Geos::Noding::IteratedNoder - Nodes a set of SegmentStrings completely.

SYNOPSIS

my $c1 = Geo::Geos::Coordinate->new(0,1);
my $c2 = Geo::Geos::Coordinate->new(2,1);
my $c3 = Geo::Geos::Coordinate->new(1,0);
my $c4 = Geo::Geos::Coordinate->new(1,2);
my $pm = Geo::Geos::PrecisionModel->new;
my $ss1 = Geo::Geos::Noding::NodedSegmentString->new([$c1, $c2]);
my $ss2 = Geo::Geos::Noding::NodedSegmentString->new([$c3, $c4]);
my $n = Geo::Geos::Noding::IteratedNoder->new($pm); # => isa 'Geo::Geos::Noding::IteratedNoder'
Geo::Geos::Noding::IteratedNoder->new($pm); # => isa 'Geo::Geos::Noding::Noder'
$n->setMaximumIterations(10);
$n->computeNodes([$ss1, $ss2]);
my $substr = $n->getNodedSubstrings->[0]; # => isa 'Geo::Geos::Noding::SegmentString';

SEE ALSO (C++ classes docs)

GEOS C++ Library

geos::noding::IteratedNoder

SEE ALSO

Geo::Geos

Geo::Geos::Noding::Noder

Geo::Geos::Noding::SegmentString

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.