Wednesday, 8 November 2017

qgis - Why are numeric values in attribute table not sorted correctly?


I have a problem with the new QGIS version (2.16.0 or 2.16.1 Nodebo). I want to sort numeric values in the attribute table by clicking on the field name. But in contrast to older QGIs versions the attributes are not sorted correctly. It feels like QGIS recognizes it as text. but in the layer properties under fields it says the attributes are numeric (double or integer).



Answer



This is a bug in QGIS 2.16.0 and 2.16.1 and has been reported in the bug tracker.


It has been resolved and 2.16.2 will no longer suffer from this problem.



As usual, you can install a nightly (in this case qgis-rel-dev) to get a fixed version before the next point release. Installing nightly versions is not only good to get fixes early on. It also helps to verify that the problems are really fixed. In case problems persist (or new problems have been introduced) these can be assessed before the next point release.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...