Hi all,

I have only recently started using GEOS and have been running into some
trouble with above error. I could not find any previous thread discussing
that, though I would imaging I am not the only one having these problems,
unless I am missing something obvious.

I have two polygons (see attached image):

POLYGON ((0.2211951454783701 0.6116363364138385, 0.2116652521705010 
0.3057918334745276, 0.0000000000000000 0.3342081624528198, 0.0000000000000000 
0.6021205790472257, 0.2211951454783701 0.6116363364138385))
POLYGON ((0.1934378019924705 0.5543894053042878, 0.0346403069293590 
0.6036107960008207, 0.1570826679798040 0.8240949853554586, 0.2381873983140706 
0.7858234220006816, 0.2540331812845585 0.6772047940497147, 0.2586049375279220 
0.6319069804375443, 0.2411233583092139 0.5940152906469550, 0.1934378019924705 
0.5543894053042878))

and I am getting the following exception when I try to compute their
intersection:

TopologyException: found non-noded intersection between 
        0 0.602121, 0.0346403 0.603611 
        and 0.193438 0.554389, 0.0346403 0.603611 0.0346403 0.603611

Now, I suspect it has something to do with rounding and that the left-most
vertex of the smaller polygon lies directly on the bottom edge of the layer
polygon.

My questions are: Why is this a problem? How can I avoid this exception?

Any help is appreciated. I am using GEOS 3.0.0rc4.

Cheers,
Oliver

-- 
Oliver Baltzer
Faculty of Computer Science  
Dalhousie University

<<attachment: debug.png>>

Attachment: signature.asc
Description: Digital signature

_______________________________________________
geos-devel mailing list
geos-devel@geos.refractions.net
http://geos.refractions.net/mailman/listinfo/geos-devel

Reply via email to