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

[graduated symbology] increase precision of float values when saving to dom #2613

Merged
merged 1 commit into from
Dec 26, 2015

Conversation

nirvn
Copy link
Contributor

@nirvn nirvn commented Dec 26, 2015

When saving the range lower and upper values (double) to the DOM, the number is truncated to 6 decimal values, which is a problem when your range is composed of double values with a precision above 6 decimals.

This PR simply increase the precision to 15.

This fixes a pretty serious issue whereas re-opening a project with layers rendered via graduated symbology would not look the same (because the classes values were truncated), leading to a different visual look, and often the highest feature(s) would not be rendered as the values would be above the truncated value saved in the dom. That issue was raised in http://hub.qgis.org/issues/14036 (with wrong initial assumptions, subsequently rectified 😄).

NathanW2 added a commit that referenced this pull request Dec 26, 2015
[graduated symbology] increase precision of float values when saving to dom
@NathanW2 NathanW2 merged commit 6fed1ae into qgis:master Dec 26, 2015
@nirvn nirvn deleted the fix_graduated_values_v3 branch February 1, 2016 09:30
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.

None yet

2 participants