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

LUCENE-9538: Detect polygon self-intersections in the Tessellator #428

Merged
merged 3 commits into from
Nov 29, 2021

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Nov 4, 2021

This PR adds a check in the tessellator to detect self-intersections so it can provide a more meaningful error to the user. This logic is disable by default but can be enabled by using the new overloaded method:

LatLonShape#createIndexableFields(String, Polygon, boolean)
XYShape#createIndexableFields(String, XYPolygon, boolean)

cc: @nknize

@iverase iverase merged commit 78c8d7b into apache:main Nov 29, 2021
@iverase iverase deleted the checkIntersections branch November 29, 2021 10:05
iverase added a commit that referenced this pull request Nov 29, 2021
Detect self-intersections so it can provide a more meaningful error to the users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant