Opened 9 years ago
Last modified 9 years ago
#9244 new Bugs
Respect rings closure of polygon while reading WKB/WKT input — at Version 1
Reported by: | Mateusz Loskot | Owned by: | Mateusz Loskot |
---|---|---|---|
Milestone: | To Be Determined | Component: | geometry |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | wkt, wkb | Cc: |
Description (last modified by )
This task is reverse of #9217.
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.
For example, the point number assertion below should hold:
using namespace boost::geometry; typedef model::point< double, 2, boost::geometry::cs::cartesian > Point; typedef model::polygon< Point, false, false > Polygon; Polygon p; read_wkt("POLYGON((1 1, 5 1, 5 5, 1 5, 1 1))", p); assert(p.outer().size() == 4);
The above applies to WKB I/O as well.
Change History (1)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|---|
Keywords: | wkt wkb added |
Summary: | Respect rings closure of polygon while reading WKT input → Respect rings closure of polygon while reading WKB/WKT input |
Note:
See TracTickets
for help on using tickets.