Boost C++ Libraries: Ticket #13057: Wrong result in intersection of linestrings https://svn.boost.org/trac10/ticket/13057 <p> The following piece of code returns wrong result for intersection of linestrings. In particular it returns false while the two linestrings have a common point. Produced on Ubuntu 14.04.3 with gcc 4.8.4 </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;string&gt; #include &lt;boost/geometry.hpp&gt; #include &lt;boost/geometry/geometries/geometries.hpp&gt; namespace bg = boost::geometry; int main() { typedef bg::model::point&lt;double, 2, bg::cs::geographic&lt;bg::radian&gt; &gt; point; typedef bg::model::linestring&lt;point&gt; linestring; linestring ls1, ls2; bg::read_wkt("LINESTRING(0 -0.31415926535897897853,0.26179938779914918578 0,-0.034906585039886556254 0.13962634015954622502,-0.12217304763960294689 0.12217304763960294689)", ls1); bg::read_wkt("LINESTRING(-0.034906585039886556254 0.13962634015954622502,-0.26179938779914918578 0)", ls2); std::cout &lt;&lt; bg::intersects(ls1, ls2) &lt;&lt; std::endl; return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13057 Trac 1.4.3 awulkiew Wed, 05 Jul 2017 12:47:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13057#comment:1 https://svn.boost.org/trac10/ticket/13057#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> <a class="missing wiki">GitHub</a>: <a class="ext-link" href="https://github.com/boostorg/geometry/pull/407"><span class="icon">​</span>https://github.com/boostorg/geometry/pull/407</a> </p> <p> Fix: <a class="ext-link" href="https://github.com/boostorg/geometry/commit/bcae6f1e81127ad02dca8effb5c539bf8a95ff46"><span class="icon">​</span>https://github.com/boostorg/geometry/commit/bcae6f1e81127ad02dca8effb5c539bf8a95ff46</a> </p> Ticket awulkiew Wed, 05 Jul 2017 12:48:39 GMT milestone changed https://svn.boost.org/trac10/ticket/13057#comment:2 https://svn.boost.org/trac10/ticket/13057#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.65.0</span> </li> </ul> Ticket