[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jts-dev] snap tolerance on geometry collections
|
- From: Glenn Walbran <glennw@xxxxxxxxxxxxxxx>
- Date: Mon, 8 Mar 2021 16:21:17 +1300
- Autocrypt: addr=glennw@xxxxxxxxxxxxxxx; prefer-encrypt=mutual; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUVOQkZTcDNld0JDQURB Wm4zZ0VFZXNXL0xBK01tYjNzaFFNUlVYUXJqRE9pL1daVFpkVE5YeWhTSkUybHR6CmR1ampu YUsxNk1ZT08zSGhoc2ZRVDNmRklpMk40WVNEL2JlcjRGY3p2a0NCQkwxbHVxOVRKZDZ5aXZX SDRySHkKN0hkdWd6ZmhUb01MRHhiVUZMKzlFN25LZWU4SUtPNjNmVWJTbnZMVEtvS2gzLzUz SzlqVDdMTGx2T2s4aGFKagpSMnA1V0RKVWRFalR0S2hVTS9XaDlDamhMUkI0VVRqWEdXVDV5 SldNYmRlbkNKRnFtRVlpM0RSZHRHWlBLWGVPCkpQMnN2Z1pIVFNsZEZCc2Rwd0JGL2M3WEt4 b3FnRmMrQ0puSTgzLzBZM3MvNG5hRm1NRXJ5SmZLTWtBb0Q1KzAKSkdLbHdGWEJ0L3VMdE9I RS9yQnBBYjljT0VueVJtMU85MWduQUJFQkFBRzBMVWRzWlc1dUlGZGhiR0p5WVc0ZwpQR2Rz Wlc1dUxuZGhiR0p5WVc1QVkyRjBZV3g1YzNRdWJtVjBMbTU2UG9rQk9BUVRBUUlBSWdVQ1ZL bmQ3QUliCkF3WUxDUWdIQXdJR0ZRZ0NDUW9MQkJZQ0F3RUNIZ0VDRjRBQUNna1EySkc2SFdR ZEYrYzc4UWYvUlA1TVZ5MmIKdWVRL2I4Yy9adzVmaGE2QjhUSWpQSis1bWY5bDB3Uit1SnVz QnhKTVpqRDZ5ZE9oMkYzeEFSUkROZHE0ODZvQgpKMEhKc2R5VWR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Sy0tLS0tCg==
- Delivered-to: jts-dev@xxxxxxxxxxx
- List-archive: <https://dev.eclipse.org/mailman/private/jts-dev/>
- List-help: <mailto:jts-dev-request@eclipse.org?subject=help>
- List-subscribe: <https://dev.eclipse.org/mailman/listinfo/jts-dev>, <mailto:jts-dev-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://dev.eclipse.org/mailman/options/jts-dev>, <mailto:jts-dev-request@eclipse.org?subject=unsubscribe>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
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.