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

ConcaveHullOfPolygons can produce disconnected result #948

Open
dr-jts opened this issue Jan 6, 2023 · 0 comments
Open

ConcaveHullOfPolygons can produce disconnected result #948

dr-jts opened this issue Jan 6, 2023 · 0 comments
Assignees
Labels

Comments

@dr-jts
Copy link
Contributor

dr-jts commented Jan 6, 2023

ConcaveHullOfPolygons can produce a disconnected MultiPolygon output in some situations. This is contrary to the stated contract for this class.

This is due to a design limitation in the current code. It can be fixed by ensuring that triangle removal does not disconnect the triangulation.

Notes

  • It might be nice to provide an option to allow disconnected output, if this is desired (also for ConcaveHull for points).

Example

MULTIPOLYGON (((10 20, 20 20, 20 10, 10 10, 10 20)), ((20 30, 30 30, 30 20, 20 20, 20 30)), ((80 90, 90 90, 90 80, 80 80, 80 90)))

Result for Length Ratio = 0.1

MULTIPOLYGON (((20 30, 30 30, 30 20, 20 10, 10 10, 10 20, 20 30)), ((90 90, 90 80, 80 80, 80 90, 90 90)))

image

@dr-jts dr-jts added the type-bug label Jan 6, 2023
@dr-jts dr-jts self-assigned this Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant