Geo::Geos::Noding::SegmentIntersector - Processes possible intersections detected by a Noder.
use Geo::Geos::Coordinate; use Geo::Geos::PrecisionModel; use Geo::Geos::Noding::IntersectionAdder; use Geo::Geos::Noding::SegmentIntersectionDetector; 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::SegmentIntersector' Geo::Geos::Noding::IntersectionAdder->new($li); # => isa 'Geo::Geos::Noding::SegmentIntersector' Geo::Geos::Noding::SegmentIntersectionDetector->new($li); # => isa 'Geo::Geos::Noding::SegmentIntersector' Geo::Geos::Noding::SingleInteriorIntersectionFinder->new($li); # => isa 'Geo::Geos::Noding::SegmentIntersector' $iaf->isDone; # => '' $iaf->getInteriorIntersections; # => is_deeply [Geo::Geos::Coordinate->new(1,2)];
GEOS C++ Library
geos::noding::SegmentIntersector
Geo::Geos
Geo::Geos::Algorithm::LineIntersector
Geo::Geos::Noding::IntersectionAdder
Geo::Geos::Noding::IntersectionFinderAdder
Geo::Geos::Noding::SegmentIntersectionDetector
Geo::Geos::Noding::SingleInteriorIntersectionFinder
Ivan Baidakou <i.baydakov@crazypanda.ru>, Crazy Panda, CP Decision LTD
You may distribute this code under the same terms as Perl itself.
To install Geo::Geos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Geos
CPAN shell
perl -MCPAN -e shell install Geo::Geos
For more information on module installation, please visit the detailed CPAN module installation guide.