Boost logo

Geometry :

Subject: Re: [geometry] intersects( polygon, box )
From: barend (barend_at_[hidden])
Date: 2012-06-01 08:17:20


 

Hi Albert,

> I noticed this bug by myself some time ago and now
tried the situation
> described by Volker Schöch with 1.49 and trunk.
>
It seams not to be fixed yet.
>
> I traced the bug to a problem in
detail::disjoint::disjoint_linear where a
> flag
'policy.has_intersections' is false, but a list that gets all turn
>
points has a size greater zero (what should be impossible in my
opinion?!).
> I did not dig any deeper into the problem but just changed
the statement
> 'if(policy.has_intersection)' to 'if(boost::size(turns)
> 0)' at line 122 in
> boost/geometry/algorithm/disjoint.hpp.
> I don't
know whether this has any bad side effects but solved the problems I
>
was facing.

Indeed that was expected to be impossible. Do you happen to
have a piece of source code or WKT which illustrates this problem?

Thanks, Barend

 



Geometry list run by mateusz at loskot.net