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

Double precision in Distance #213

Merged
merged 2 commits into from
Sep 12, 2018
Merged

Double precision in Distance #213

merged 2 commits into from
Sep 12, 2018

Conversation

matthieun
Copy link
Collaborator

Description:

Underpin Distance with a double instead of a long when storing the value as millimeters.

Potential Impact:

This changes the asMillimeters API to return a double. This would allow distance calculations to not lose precision due to rounding to the closest millimeter.

Unit Test Approach:

Updated unit tests and also ran all integration tests. Also tried generating Atlas files using AtlasGenerator in https://github.com/osmlab/atlas-generator and those look good.

Test Results:

Atlas files look good and all unit tests and integration tests pass.


In doubt: Contributing Guidelines

@jklamer
Copy link
Contributor

jklamer commented Sep 6, 2018

👍

Copy link
Contributor

@MikeGost MikeGost left a comment

Choose a reason for hiding this comment

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

Good change and thanks for the test updates, gives extra confidence in the changes!

@MikeGost MikeGost merged commit 5ca51b5 into osmlab:dev Sep 12, 2018
@matthieun matthieun added this to the 5.1.12 milestone Oct 17, 2018
@matthieun matthieun deleted the distance branch November 12, 2018 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants