Skip to content

Remove lat lon bound checks from GeoLocation #4225

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

Merged
merged 1 commit into from
Nov 15, 2019
Merged

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Nov 15, 2019

Relates: elastic/elasticsearch#43893

This commit removes the bound checks on latitude and longitude on GeoLocation (and the derived GeoCoordinate), to allow values outside of the -90 to 90, and -180 to 180 ranges, respecitvely.

Relates: elastic/elasticsearch#43893

This commit removes the bound checks on latitude and longitude on GeoLocation (and the derived GeoCoordinate), to allow values outside of the -90 to 90, and -180 to 180 ranges, respecitvely.

return null;
}
// TODO: Remove in 8.0 as without bounds checks, provides no value
Copy link
Contributor

Choose a reason for hiding this comment

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

++

Copy link
Contributor

@codebrain codebrain left a comment

Choose a reason for hiding this comment

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

LGTM

@russcam russcam merged commit 29d68b2 into 7.x Nov 15, 2019
russcam added a commit that referenced this pull request Nov 15, 2019
Relates: elastic/elasticsearch#43893

This commit removes the bound checks on latitude and longitude on GeoLocation (and the derived GeoCoordinate), to allow values outside of the -90 to 90, and -180 to 180 ranges, respecitvely.

(cherry picked from commit 29d68b2)
russcam added a commit that referenced this pull request Nov 15, 2019
Relates: elastic/elasticsearch#43893

This commit removes the bound checks on latitude and longitude on GeoLocation (and the derived GeoCoordinate), to allow values outside of the -90 to 90, and -180 to 180 ranges, respecitvely.

(cherry picked from commit 29d68b2)
@russcam
Copy link
Contributor Author

russcam commented Nov 15, 2019

ported to 7.4 and master; port to master removed the TryCreate method

@Mpdreamz Mpdreamz deleted the feature/lat-lon-checks branch February 10, 2020 10:36
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.

2 participants