The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Geo::Geos::Noding::IntersectionFinderAdder - Finds proper and interior intersections and adds them as nodes.

SYNOPSIS

use Geo::Geos::Coordinate;
use Geo::Geos::PrecisionModel;
use Geo::Geos::Noding::IntersectionAdder;

my $c4 = Geo::Geos::Coordinate->new(1,2);

my $pm = Geo::Geos::PrecisionModel->new;
my $li = Geo::Geos::Algorithm::LineIntersector->new($pm);

my $iaf = Geo::Geos::Noding::IntersectionFinderAdder->new($li, [$c4]);   # => isa 'Geo::Geos::Noding::IntersectionFinderAdder'
Geo::Geos::Noding::IntersectionFinderAdder->new($li, [$c4]);             # => isa 'Geo::Geos::Noding::SegmentIntersector'

$iaf->isDone; # always false        # => ''
$iaf->getInteriorIntersections;     # => is_deeply [Geo::Geos::Coordinate->new(1,2)];

SEE ALSO (C++ classes docs)

GEOS C++ Library

geos::noding::IntersectionFinderAdder

SEE ALSO

Geo::Geos

Geo::Geos::Algorithm::LineIntersector

Geo::Geos::Noding::SegmentIntersector

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.