-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 classes are altered when saved to qgs #16253
Comments
Author Name: Regis Haubourg (@haubourg) QML and mapinfo tab are also concerned |
Author Name: Regis Haubourg (@haubourg) It could be simple to solve since same problem occured with WMS bounds and scales: |
Author Name: Regis Haubourg (@haubourg) conversion to Double seems to be done here: use of .toDouble seems to be done everywhere. Any idea ? |
Author Name: Alexander Bruy (@alexbruy) Here is patch that should fix such issue. Unfortunately, I can't test it with wide range of datasets, so maybe in some cases it still don't work as expected.
|
Author Name: Regis Haubourg (@haubourg) Hi, a little up to commiters: Can anyone test before merge ? This might be a easy-to-solve blocker ;-) |
Author Name: Nathan Woodrow (@NathanW2) Can we confirm if this still and issue. I can't reproduce here. |
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) I can't reproduce this issue either. So what they say is true, time does heal ;o) |
Author Name: Nathan Woodrow (@NathanW2) Regis can you test with the latest build and report back if it is still an issue.
|
Author Name: Regis Haubourg (@haubourg) Hi, there is no new build on osgeo4w today, I'll try next week (QGIS training by the end of the week!) |
Author Name: Regis Haubourg (@haubourg) Hi, I join a very simple dataset to build unit tests:
|
Author Name: Nathan Woodrow (@NathanW2) Ok I see it. Will try and fix. |
Author Name: Minoru Akagi (@minorua) QVariant::toString() seems to return better results than QString::number(), doesn't it? In python:
|
Author Name: Nathan Woodrow (@NathanW2) Seems so. toString is the way to go. |
Author Name: Jürgen Fischer (@jef-n) Fixed in changeset "4538cf1593a22c1aba998abfc6f3c730b0943a71".
|
Author Name: Regis Haubourg (@haubourg)
Original Redmine Issue: 7217
Affected QGIS version: master
Redmine category:symbology
confirmed on both 1.8 and master dc074b3.
when classifying continuous numerical data (shp - field type; real ; length 20; precision 5) , classes are generated correctly, but are saved with exponents notation if data exceeds 1000000:
In the following example, the last classe upper value has been converted from 6 034 292 to 6.03429e+06.
real max value is then thrown out of classes because 6.03429e+06 is converted to 6 034 290 when project is reloaded.
All the values close to upper and lower bounds are potentially concerned.
This is a blocker since there is no way to save a project correctly, except modifying classes by hand in a text editor.
The text was updated successfully, but these errors were encountered: