<div dir="ltr">I have some SLD based styling used in GeoServer.<div><br></div><div>I sáve the SLD style description as a text file, import this file into QGIS and it works (almostl) nicely....</div><div><br></div><div>However QGIS interprets this part of the SLD wrongly</div><div>"</div><div><div><b><ogc:Filter></b></div><div><b>            <ogc:PropertyIsEqualTo matchCase="false"></b></div><div><b>              <ogc:PropertyName>underelement_kode</ogc:PropertyName></b></div><div><b>              <ogc:Literal>10e-004</ogc:Literal></b></div><div><b>            </ogc:PropertyIsEqualTo></b></div><div><b>          </ogc:Filter></b></div></div><div><br></div><div>"</div><div>the literal '<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">10e-004</span>

' is a string value and not scientific notation for the decimal value 0.001</div><div><br></div><div>The ogc:literal value is interpreted as a decimal value ( 0.0001 ) resulting in the QGIS style rule part</div><div><br></div><div>"</div><div><b>underelement_kode = 0.001</b></div><div>" </div><div>instead of treating the value as a string,resulting in a rulepart like this:</div><div><br></div><div>"</div><div>

<div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><b>underelement_kode = '10e-004'</b></div></div><div>"</div><div><br></div><div>Is there a method to force the SLD interpreter to treat the value as a string ?</div><div><br></div><div>I have tried to change the <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><ogc:PropertyIsEqualTo> element to </span><ogc:PropertyIsLike> which resulted in  this rule part:</div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span><br></span></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span>"</span></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span>

<b style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">underelement_kode LIKE '0.001'</b> <br></span></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span>"</span></span></div><div>Not much better :-/ </div><div><br></div><div>The last result tells me,that a solution mioght be something as a attrubute to the </div><div>

<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><ogc:Literal>10e-004</ogc:Literal></span> element - perhaps something like this: </div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div>

<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><ogc:Literal <b>type=text</b> >10e-004</ogc:Literal></span></div><div><br></div><div>Which, unfortunately, doesn't work </div><div>

  </div><div>Has anyone a solution for this problem ?</div><div><br></div><div>Kind regards </div><div><br></div><div>Bo Victor Thomsen</div><div><br></div><div><br></div><div><br></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span><br></span></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span><br></span></span></div><div><br></div><div><br></div><div><br></div><div><br></div></div>