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

Invalid LinearRing is reported as valid #736

Closed
dr-jts opened this issue Jun 4, 2021 · 0 comments · Fixed by #737
Closed

Invalid LinearRing is reported as valid #736

dr-jts opened this issue Jun 4, 2021 · 0 comments · Fixed by #737
Assignees

Comments

@dr-jts
Copy link
Contributor

dr-jts commented Jun 4, 2021

Certain kinds of LinearRings with self-intersections are reported as valid by Geometry.isValid(). For example:

LINEARRING (40 90, 90 90, 10 10, 90 10, 40 90)

image

This is caused by a bug in the way IsValidOp analyzes the self-intersections. Roughly, if the self-intersection is to the left of the ring endpoint, it is not detected as being invalid.

Originally reported as Shapely-1133

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

Successfully merging a pull request may close this issue.

1 participant