Hi,

I'm currently using the intersection function to get the intersecting points of two linestrings. The relevant code is the following:

BOOST_GEOMETRY_REGISTER_POINT_2D(Vec2f, double, cs::cartesian, x, y);
BOOST_GEOMETRY_REGISTER_LINESTRING(std::vector<Vec2f>);
std::vector<Vec2f> output, lineStringA, lineStringB;
boost::geometry::intersection(lineStringA, lineStringB, output);

What I would also like to know is in which segment on the linestring the intersection happens (the index of the vector). Is there any way to obtain that information? Or should I try to replace bg::intersection for smaller, segment by segment calculations?

Thanks