2013/6/20 Mateusz Loskot <mateusz@loskot.net>
On 20 June 2013 10:26, TONGARI <tongari95@gmail.com> wrote:You can define open polygon or ring, means
>
> I'm not quite understand why we need traits::closure for Ring & Polygon,
> aren't these always closed?
typedef bg::model::polygon<point, false, false> polygon; // open polygon
typedef bg::model::ring<point, false, false> ring; // open ring
where the following condition does not hold
last point == first point
It is specification of the fact if first point is assumed as repeated or not
at last position.
Algorithms won't expect physical presence of the repeated first point.
> What should I expect if the closure is open?
Ring is also known as linear ring, in case you know OGC geometry model.
> Should I see Ring as Linestring
IOW, (linear) ring is a specialisation of the linestring kind.