Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double Type Values in SLD truncated #23115

Closed
qgib opened this issue Jun 29, 2016 · 2 comments
Closed

Double Type Values in SLD truncated #23115

qgib opened this issue Jun 29, 2016 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jun 29, 2016

Author Name: Conor Woods (Conor Woods)
Original Redmine Issue: 15176
Affected QGIS version: 2.14.3
Redmine category:vectors
Assignee: Nyall Dawson


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>

@qgib
Copy link
Contributor Author

qgib commented Jun 29, 2016

Author Name: Nyall Dawson (@nyalldawson)


  • assigned_to_id was configured as Nyall Dawson

@qgib
Copy link
Contributor Author

qgib commented Jun 29, 2016

Author Name: Nyall Dawson (@nyalldawson)


Fixed in changeset "b49ada283d7e1074b6809877cc089e43c4fa79d5".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats) labels May 25, 2019
@qgib qgib added this to the Version 2.14 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant