Both of these polygons are invalid. They have self-intersections in the
vicinity of 265428.1, 194412.13. That's the reason for the error.
This looks like data which has been rounded vertex-wise to a fixed
precision model. In general this doesn't work - rounding the vertices
alone can introduce topology collapses. Correct rounding needs to be
performed by an algorithm which takes the entire topology into account.
JTS doesn't contain such an algorithm explicitly, but using buffer(0)
produces a valid rounded result.
Diego Guidi wrote:
I hope this is the place for submitting bugs... if i'm wrong, please
show me a jira issue or other places :)
In any case... this test fails:
--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel