Boost logo

Geometry :

Subject: [ggl] Trying a simple linestring-linear_ring intersection
From: Barend Gehrels (Barend.Gehrels)
Date: 2010-02-26 14:39:33


Hi Elvis,

I'm now starting at your problem. The code below indeed does not run:2

> /* A line string. */
> linestring_2d s;
> s.push_back(make<point_2d>(0.0, 10.0));
> s.push_back(make<point_2d>(20.0, 10.0));
>
> /* Clip the linear ring with the linestring. */
> std::vector<linestring_2d> r;
> intersection_inserter<linestring_2d>(t, s, std::back_inserter(r));
> The error I'm getting is:
>
> test.cpp:26: instantiated from here
> boost-geometry/boost/geometry/algorithms/within.hpp:336: error:
> 'apply' is not a member of
> (...)

Indeed this is not running; it will be implemented some moment; however
the problem you were interested in was getting intersection points
between a polygon and a linestring, including their direction, right?

Regards, Barend


Geometry list run by mateusz at loskot.net