Boost logo

Geometry :

Subject: Re: [geometry] problem with wkt io
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2013-10-09 15:48:24


On 9 October 2013 20:29, lepere renaud <lepere.renaud_at_[hidden]> wrote:
> On the other side i would expect that wkt(p) will return a valid wkt polygon
> but the function seems to make no special traitement for the last point;

The WKT I/O takes what it gets, and in some cases it behaves in somewhat
relaxed manner regarding the OGC spec compliance.

In your case it gets non-closed polygon.

Perhaps it could be improved, I'm not sure though.
The documentation could be, I guess.

Best regards,

-- 
Mateusz  Loskot, http://mateusz.loskot.net

Geometry list run by mateusz at loskot.net