-
Notifications
You must be signed in to change notification settings - Fork 22
Support (Geo) Point datatype #112
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
Conversation
gkorland
left a comment
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.
Please cover the toString and hash Point functions
src/main/java/com/redislabs/redisgraph/graph_entities/Point.java
Outdated
Show resolved
Hide resolved
src/main/java/com/redislabs/redisgraph/graph_entities/Point.java
Outdated
Show resolved
Hide resolved
|
This pull request introduces 1 alert when merging cd3ea1d into d84af9a - view on LGTM.com new alerts:
|
This reverts commit 629500d.
Conflicts: src/test/java/com/redislabs/redisgraph/RedisGraphAPITest.java
src/main/java/com/redislabs/redisgraph/graph_entities/Point.java
Outdated
Show resolved
Hide resolved
| return Math.abs(latitude - o.latitude) < EPSILON && | ||
| Math.abs(longitude - o.longitude) < EPSILON; |
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.
I think we should find the mapping format (datum) resolution and infer EPSILON from it, otherwise, we can get wrong results here
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.
@DvirDukhan I'd prefer to avoid that. The difference is already very low and datum resolution would just bring more precision issue. More importantly, we are not calculating the distance here. We are just trying to check if the latitudes and longitudes (both plural) can be considered same.
|
@gkorland I'll be happy to review if you guys are backed up. |
Resolves #111