Subject: Re: [geometry] intersects( polygon, box )
From: alzi (aZiegenhagel_at_[hidden])
Date: 2012-06-01 11:14:22
> Indeed that was expected to be impossible. Do you happen to
> have a piece of source code or WKT which illustrates this problem?
I tried the intersections described by Volker.
I used the following code:
int main(int argc, char *argv)
typedef boost::geometry::model::d2::point_xy<double> PointType;
boost::geometry::model::polygon<PointType> A, B2;
boost::geometry::read_wkt("POLYGON((1992 3240,1992 1440,3792 1800,3792
boost::geometry::read_wkt("POLYGON((1941 2066,2055 2066,2055 2166,1941
std::cout << boost::geometry::intersects( A, B1 ) << std::endl;
std::cout << boost::geometry::intersects( A, B2 ) << std::endl;
The output should be 1 and 1 but it is 0 and 1.
-- View this message in context: http://boost-geometry.203548.n3.nabble.com/intersects-polygon-box-tp3751095p4024998.html Sent from the Boost Geometry mailing list archive at Nabble.com.
Geometry list run by mateusz at loskot.net