Boost C++ Libraries: Ticket #12347: linestring and polygon intersection wrong answer https://svn.boost.org/trac10/ticket/12347 <p> LINESTRING(1 -1, 1 0, 1 1) and POLYGON((0 0, 0 2, 2 2, 2 0, 1 0, 0 0)) intersection is LINESTRING(1 -1, 1 0, 1 1) for integer coordinate type. Test code is attached. </p> <p> I beleive that's because of middle point of ((1 -1), (1, 0)) segment is (1, 0) :( </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12347 Trac 1.4.3 Anton Kovalev <anton.kovalev.239@…> Sat, 23 Jul 2016 19:08:12 GMT attachment set https://svn.boost.org/trac10/ticket/12347 https://svn.boost.org/trac10/ticket/12347 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> <p> test file reproducing this bug </p> Ticket