terminate called after throwing an instance of 'std::runtime_error'
what(): Polygon A is invalid: Geometry is defined as closed but is open
As far as I can tell it is because removeCoLinear removes some of the segments so the first and last point of the polygon end up to be different. Calling bg::correct() on the resulting polygon seems to fix it.
Attached is colinear.zip which causes the error
As far as I can tell it is because removeCoLinear removes some of the segments so the first and last point of the polygon end up to be different. Calling
bg::correct()
on the resulting polygon seems to fix it.