Boost C++ Libraries: Ticket #9244: Respect rings closure of polygon while reading WKB/WKT input https://svn.boost.org/trac10/ticket/9244 <p> This task is reverse of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9217" title="#9217: Patches: Impose closed rings of polygon in WKT output (closed: fixed)">#9217</a>. </p> <p> If model of a polygon specifies non-closed rings (first point is not repeated at last position), then this specification should be respected while consuming polygon encoded in OGC WKT format in which all rings are always closed. </p> <p> For example, the point number assertion below should hold: </p> <pre class="wiki">using namespace boost::geometry; typedef model::point&lt; double, 2, boost::geometry::cs::cartesian &gt; Point; typedef model::polygon&lt; Point, false, false &gt; Polygon; Polygon p; read_wkt("POLYGON((1 1, 5 1, 5 5, 1 5, 1 1))", p); assert(p.outer().size() == 4); </pre><p> The above applies to WKB I/O as well. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9244 Trac 1.4.3 Mateusz Loskot Thu, 14 Nov 2013 15:33:07 GMT description, summary changed; keywords set https://svn.boost.org/trac10/ticket/9244#comment:1 https://svn.boost.org/trac10/ticket/9244#comment:1 <ul> <li><strong>keywords</strong> wkt wkb added </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/9244?action=diff&amp;version=1">diff</a>) </li> <li><strong>summary</strong> <span class="trac-field-old">Respect rings closure of polygon while reading WKT input</span> → <span class="trac-field-new">Respect rings closure of polygon while reading WKB/WKT input</span> </li> </ul> Ticket