Hi JTS Devs
I've had a few cases of TopologyExceptions when doing a
difference on two geometries that were both multipolygons. These
geometries both had large envelopes but were made up of much
smaller polygons.
After a bit of investigation I worked out that the tolerance
being applied in the snapping was much larger than is was when
doing a difference on the individual parts.
So I've submitted pull request
https://github.com/locationtech/jts/pull/699/ to amend the
tolerance calculation to look into the individual parts of the
geometry collections.
Let me know your thoughts on that.
Regards
Glenn
--
Glenn Walbran
Software Developer
Catalyst IT - Expert Open Source Solutions
DDI: +64 4 803 2343 | Mob: +64 21 211 1301 | Tel:
+64 4 499 2267 | www.catalyst.net.nz
CONFIDENTIALITY NOTICE: This email is intended for
the named recipients only. It may contain privileged,
confidential or copyright information. If you are not the named
recipient, any use, reliance upon, disclosure or copying of this
email or its attachments is unauthorised. If you have received
this email in error, please reply via email or call +64 4 499
2267.
_______________________________________________