Boost logo

Geometry :

Subject: [geometry] Interesection points
From: Hunk (heiko.hoennige_at_[hidden])
Date: 2013-08-13 03:25:15


i am trying to get one intersection point between line polygon or line line,

i tried

typedef model::d2::point_xy<double> point;
typedef model::ring< point > ring;
typedef model::polygon< point > polygon;
typedef model::linestring< point > linestring;
        "POLYGON((0 0,1 0, 1 1,0 1))", green);
linestring ls;
boost::geometry::read_wkt("LINESTRING(0.5 -1,0.5 0.5)", ls);
std::vector<point> intersections;
boost::geometry::intersection(green, blue, intersections);

but it is not working. I only want the point which is on the border.
Anyone has an idea for that ?

thank you for help. I am really new on boost.

View this message in context:
Sent from the Boost Geometry mailing list archive at

Geometry list run by mateusz at