Boost logo

Geometry :

Subject: Re: [geometry] Negative distance?
From: Barend Gehrels (barend_at_[hidden])
Date: 2012-03-16 12:31:37


Hi Volker,

Thanks for your report. However, I cannot reproduce it.

I'm getting a distance back of 266333, which is the correct value. To be
sure I also checked for 1.48 and it is still OK for me.

I also inspected the code and find nothing strange for polygons or a
minimal check of points (first thought of that) there.

So... are you sure?

On 15-3-2012 10:14, Volker Schöch wrote:
> A = MULTIPOLYGON(((-262144 3434,-262106 3499,-262181 3499)))
> B = POINT(4218 1280)
> --> boost::geometry::distance(A, B)< 0
>
> I tested with boost 1.48.0, my polygon type is oriented counter-clockwise and not closed, my point type is based on int. I apologize for not having updated to 1.49.0 yet.
>

Attached my program to verify this.

Regards, Barend




Geometry list run by mateusz at loskot.net