-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[GEOT-7570] Small features that cross the dateline may be interpreted as preflipped #4747
[GEOT-7570] Small features that cross the dateline may be interpreted as preflipped #4747
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally speaking looking good, see comments below about being a bit more explicit docs wise.
/** | ||
* Builds a new wrapper | ||
* | ||
* @param wrapLimit Subsequent coordinates whose X differ from more than {@code wrapLimit} are | ||
* supposed to be wrapping the dateline and need to be offsetted | ||
* @param offset The offset to be applied to coordinates to unwrap them | ||
* @param mt The math transform to use to detect the wrapping | ||
* @param wrapOnY If true, the wrapping is supposed to happen on the Y axis, otherwise on the X | ||
* @param isPreFlipped If true, the coordinates are already flipped, so the wrapping is supposed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param isPreFlipped If true, the coordinates are already flipped, so the wrapping is supposed | |
* @param isPreFlipped If true, the coordinates are already flipped, so the wrapping is supposed |
Supposed? 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
/** The tolerance to consider a geometry without touching both datelines */ | ||
public static final double DATELINE_PROXIMITY_TOLERANCE = 1.99572; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment that it was obtained by trial and error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
* In some cases the geometry is preflipped due to coordinate order and proximity to the | ||
* dateline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write an example, 3 points polygon or 2 points line that would show what pre-flipped means.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
… as preflipped removed longestline filter cleanup added PR comments
4394c8a
to
f477874
Compare
removed longestline filter
cleanup
Checklist
main
branch (backports managed later; ignore for branch specific issues).For core and extension modules:
[GEOT-XYZW] Title of the Jira ticket
.