-
Notifications
You must be signed in to change notification settings - Fork 661
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
Fix roundoff issue in Tiles #4585
Conversation
Row and Col methods) where an incorrect tile Id is computed (along with incorrect Base lat,lng from that tile).
to rare roundoff issues where a neighboring tile is returned.
@dnesbitt61 need to update the changelog |
im trying to reason about your comment on data compatibilty. old code would expect that a node would land in a different tile than new code. which means old data built with old code would have certain nodes land in the wrong tiles. this would be a problem if we used this method in a scenario where:
the good news is this doesnt really matter because loki never stops looking in one place it looks at closest first and next closes next and so on. the only risk is that in this scenario it finds something that isnt the actual closest thing, which does suck but its not catastrophic. to me i think we can ship this without worrying about compatibility. the data wont crash anything it will at worst give sub par results for these specific edge cases |
how can codecov fail! I added a unit test. Oh well |
🎲 🎲 |
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.
good catch again thanks!
Issue
#fixes #4584
Using float in the Tiles Row and Col methods can lead to an incorrect tile id being computed (along with incorrect base lat, lng). Using double as the argument to these methods fixes the issue.
For discussion - will this change cause any compatibility issues?
Tasklist
Requirements / Relations
Link any requirements here. Other pull requests this PR is based on?