Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoverageValidator does not detect gap if tolerance is too large #1122

Open
dr-jts opened this issue Mar 3, 2025 · 0 comments
Open

CoverageValidator does not detect gap if tolerance is too large #1122

dr-jts opened this issue Mar 3, 2025 · 0 comments

Comments

@dr-jts
Copy link
Contributor

dr-jts commented Mar 3, 2025

The CoverageValidator may not detect narrow gaps if the gap tolerance is large relative to the input geometries. This is not ideal, since gaps may go undetected when using a tolerance that can detect large gaps.

Example

This is an extract from a dataset with much larger extent (so that a gap tolerance of say 1 seemed reasonable). The geometries contain a gap which is very narrow, between relatively short segments.

GEOMETRYCOLLECTION (
  POLYGON ((1.4021184536698854 1.655211920135038, 1.4021184539862759 1.6552119201560487, 1.4021299999999997 1.6559219999999968, 1.4021410000000003 1.6566259999999957, 1.4021410000000003 1.658296, 1.406 1.654, 1.4021184536698854 1.655211920135038)), 
  POLYGON ((1.406 1.654, 1.4 1.65, 1.4021410000000003 1.658296, 1.4021410000000003 1.6566259999999957, 1.4021365939839114 1.6563440149706494, 1.4021299996998664 1.6559220002002917, 1.4021184536698854 1.655211920135038, 1.406 1.654)))
Image

Using a gap tolerance of 0.00001 detects the gap, but larger tolerances do not.

Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant