Boost logo

Geometry :

Subject: [geometry] overlay_invalid_input_exception in 1.50
From: V (foxadpatres_at_[hidden])
Date: 2012-08-31 05:09:20


Hello world

I encounter a overlay_invalid_input_exception while using the
boost::geometry::intersection(p1,p2,out)

I don't get why it works with some polygons and not with other, any help
would be very welcome

this work :
str1 : POLYGON((530 -6890, 3530 -6890, 3680 -8240, 530 -6890))
str2 : POLYGON((6926 1523, 5926 -10976, 8426 -3476, -4073 -10976, 3426
-5976, -4073 -976, 6926 1523))

and not this :
str1 : POLYGON((4280 160, 5930 1810, 6980 1510, 6980 -4490, 5930 -7640, 4280
-7490, 4280 160))
str2 : POLYGON((6926 1523, 5926 -10976, 8426 -3476, -4073 -10976, 3426
-5976, -4073 -976, 6926 1523))

The read_wkt(str1,p1) et (str2,p2) get the right polygon each time.
The intersection(p1,p2,out) crashes only in the second case.

Thanks by advance for your help, and sorry for my english (not a native
speaker)

V

--
View this message in context: http://boost-geometry.203548.n3.nabble.com/overlay-invalid-input-exception-in-1-50-tp4025097.html
Sent from the Boost Geometry mailing list archive at Nabble.com.

Geometry list run by mateusz at loskot.net