Closed kitzilla closed 8 years ago
hi, this was actually a QGIS issue, see http://hub.qgis.org/issues/11863
can you please check 2.10.1 or current master to see if this is still a problem.
if not you can close this issue :-)
I have tested without the patch above in Pisa and the confirmed issue is gone. Thank you for letting me know this.
In QGIS 2.8.2, if I use negative number as class bound for graduated layer styling, the filter part in the SLD spit by QGIS looks like this. You will see that there is unnecessarily nested <ogc:Literal> tags for "-100".
When this is submitted to GeoServer without treatment, GeoServer automatically removes the inner <Literal> element (ie. "100") and leaves the minus sign only,
Hence any graduated layers using one or more negative numbers end up to be published with malformed SLDs.
Here is a quick workaround I placed in adaptQgsToGs in sldadapter.py