invalid sld for graduated style on field with negative values #20078
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Expressions
Related to the QGIS expression engine or specific expression functions
Milestone
Author Name: Maarten Pronk (Maarten Pronk)
Original Redmine Issue: 11863
Affected QGIS version: 2.6.1
Redmine category:expressions
When creating a graduated style on a field with negative values, the resulting sld file has the following xml:
The sld has a Literal within a Literal. Loading the same sld back into QGIS produces rules with || like:
value > '-' || 4.45316 AND value <= '-' || 0.786648
Which results in the same visualization for all negative fields.
Affects 2.4 to 2.6.1, probably also older versions. Tested on different layers, with different fields on Windows & Linux.
The text was updated successfully, but these errors were encountered: