Bug report #15176
Double Type Values in SLD truncated
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Nyall Dawson | ||
Category: | Vectors | ||
Affected QGIS version: | 2.14.3 | Regression?: | No |
Operating System: | Windows | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 23115 |
Description
Hi,
I am having some issues with SLD generation when the values are Doubles.
If I create a style for a vector layer with values such as '-294111980.8000' the resulting SLD truncates this value in the rule to -2.94112e+08, meaning that values slightly outside this range will not be styled.
Is there any way around this i.e. to stop the SLD generation changing the number to scientific notation?
Thanks,
Conor
<se:Rule> <se:Name> -2147483648.0000 - -294111980.8000 </se:Name> <se:Description> <se:Title> -2147483648.0000 - -294111980.8000 </se:Title> </se:Description> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> <ogc:And> <ogc:PropertyIsGreaterThan> <ogc:PropertyName>DN</ogc:PropertyName> <ogc:Literal>-2.14748e+09</ogc:Literal> </ogc:PropertyIsGreaterThan> <ogc:PropertyIsLessThanOrEqualTo> <ogc:PropertyName>DN</ogc:PropertyName> <ogc:Literal>-2.94112e+08</ogc:Literal> </ogc:PropertyIsLessThanOrEqualTo> </ogc:And> </ogc:Filter> <se:PolygonSymbolizer> <se:Fill> <se:SvgParameter name="fill">#2b83ba</se:SvgParameter> </se:Fill> </se:PolygonSymbolizer> </se:Rule>
Associated revisions
Always use full precision when exporting to SLD (fix #15176)
History
#1 Updated by Nyall Dawson over 8 years ago
- Assignee set to Nyall Dawson
#2 Updated by Nyall Dawson over 8 years ago
- Status changed from Open to Closed
Fixed in changeset b49ada283d7e1074b6809877cc089e43c4fa79d5.