|
Geometry : |
Subject: [ggl] intersection_segment...
From: Barend Gehrels (Barend.Gehrels)
Date: 2009-06-28 16:38:50
Hi Chris,
> Reverting what I said yesterday, it is actually segment/segment
> intersection I need, because I need to know precisely which segments
> of the linestrings intersects.
OK. Alternatively , you might call ggl::get_intersection_points
directly. It gives you the intersection, plus the segment, plus
information about *how *they intersect. Can be called like this:
#include <ggl/algorithms/overlay/get_intersection_points.hpp>
...
typedef ggl::detail::intersection::intersection_point<P> ip;
std::vector<ip> ips;
ggl::get_intersection_points(line1, line2, ips);
ggl::get_intersection_points is also a generic algorithm, so works for
points, linestrings and polygons and multi*.
Regards, Barend
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ggl/attachments/20090628/96437bc8/attachment.html
Geometry list run by mateusz at loskot.net