orfon / bulkvectorexport

QGIS plugin to export vector layers with styling info (geojson + sld)

Home Page:http://planet.qgis.org/plugins/bulkvectorexportwithstyle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double Type Values in SLD truncated

conorw opened this issue · comments

Hi,

Love this plugin it has really helped me to convert a large amount of layers.

However, 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>

thanks for the report. I see you got this fixed in qgis https://hub.qgis.org/issues/15176