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

Issue with polygons near date line #6282

Closed
wants to merge 0 commits into from
Closed

Issue with polygons near date line #6282

wants to merge 0 commits into from

Conversation

colings86
Copy link
Contributor

If a polygon is constructed which overlaps the date line but has a hole which lies entirely one to one side of the date line, JTS error saying that the hole is not within the bounds of the polygon because the code which splits the polygon either side of the date line does not add the hole to the correct component of the final set of polygons. The fix ensures this selection happens correctly.

Closes #6179

@@ -192,5 +193,44 @@ public void testLineStringWrapping() {
assertMultiLineString(shape);
}

public void testDateline() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing @Test annotation here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the framework supports both: method names that start with test or @Test annotations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it did seem to be running the test without the annotation but I have added the annotation anyway for consistency

@jpountz
Copy link
Contributor

jpountz commented Jun 2, 2014

LGTM

@colings86
Copy link
Contributor Author

Merged into master and 1.x but the PR did not automatically close so closing manually

@colings86 colings86 closed this Jun 2, 2014
@colings86 colings86 removed the review label Jun 2, 2014
@colings86 colings86 deleted the fix/6179 branch June 9, 2014 08:38
@colings86 colings86 self-assigned this Aug 21, 2014
@clintongormley clintongormley added >bug v2.0.0-beta1 v1.3.0 :Analytics/Geo Indexing, search aggregations of geo points and shapes labels Jun 7, 2015
@clintongormley clintongormley changed the title Geo: Issue with polygons near date line Issue with polygons near date line Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >bug v1.3.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Geo:Valid Polygon crossing dateline fails to parse
4 participants