Boost C++ Libraries: Ticket #11710: is_simple - empty geometry logic https://svn.boost.org/trac10/ticket/11710 <p> The logic around dealing with empty datasets and is_simple seems a little confusing: </p> <p> An empty line - seg fault (see <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/11709"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/11709</a>) An empty multi line - returns false An empty polygon - returns true An empty multi polygon - returns false </p> <p> Should a multi polygon or linestring that is empty be considered simple. I would think it would as it would not have any anomalous geometric points, such as self intersection or self tangency. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11710 Trac 1.4.3 flippmoke@… Mon, 05 Oct 2015 21:28:22 GMT cc set https://svn.boost.org/trac10/ticket/11710#comment:1 https://svn.boost.org/trac10/ticket/11710#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">flippmoke@…</span> added </li> </ul> <p> This also affects multipoints that are empty which are also returned as false. </p> Ticket mkaravel Wed, 18 Nov 2015 08:54:09 GMT cc, status changed; resolution set https://svn.boost.org/trac10/ticket/11710#comment:2 https://svn.boost.org/trac10/ticket/11710#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">mkaravel</span> added </li> <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> The ticket has been solved as part of <a class="missing wiki">GitHub</a> PR 334: <a class="ext-link" href="https://github.com/boostorg/geometry/pull/334"><span class="icon">​</span>https://github.com/boostorg/geometry/pull/334</a> </p> <p> Details: </p> <p> Empty lines and empty polygons as considered as invalid geometries. As such the result of is_simple is irrelevant. In the current fix (see PR above) is_simple returns false for both these geometries. </p> <p> On the contrary empty multi-geometries are considered as valid (in reality representing the empty geometry), and with this bug fix they are considered as simple as well. </p> Ticket mkaravel Wed, 18 Nov 2015 08:55:10 GMT milestone changed https://svn.boost.org/trac10/ticket/11710#comment:3 https://svn.boost.org/trac10/ticket/11710#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.60.0</span> </li> </ul> Ticket