<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi,</span></div><div><span>In gvSIG 1.11 works with [field]>=0.5</span></div><div><span>Antonio, ¿Do you know a reference about this grammar?<br></span></div><div><span>Regards.</span></div><div> </div><div><font size="2" color="#5b5b5b" face="arial, helvetica, sans-serif">--------------------</font></div><div><font size="2" color="#5b5b5b" face="Arial">Pablo Cuadrado</font></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">De:</span></b> Antonio Falciano <afalciano@yahoo.it><br> <b><span style="font-weight: bold;">Para:</span></b> gvsig_internacional@listserv.gva.es <br> <b><span
style="font-weight: bold;">Enviado:</span></b> Viernes 27 de abril de 2012 9:57<br> <b><span style="font-weight: bold;">Asunto:</span></b> Re: [Gvsig_english] SLD grammar syntax<br> </font> </div> <br>Hi all,<br>there aren't dark secrets behind... It seems a bug: the parser of<br>the Expression filter doesn't accept floating decimal, in fact:<br><br>[Field]>= 5 ...works like a charm<br><br>[Field]>= 0.5 ...returns a NumberFormatException<br><br> From the gvsig.log of gvSIG 1.12 devel (build 1406):<br><br>For input string: "[Field]" java.lang.NumberFormatException: For input <br>string: "[Field]" sun.misc.FloatingDecimal.readJavaFormatString(Unknown <br>Source) java.lang.Double.valueOf(Unknown Source) java.lang.Double. <br>(Unknown Source) <br>org.gvsig.symbology.fmap.rendering.filter.operations.GreaterThanOrEqualsOperator.evaluate(GreaterThanOrEqualsOperator.java:74)
<br><br>org.gvsig.symbology.fmap.rendering.VectorFilterExpressionLegend.getSymbolByFeature(VectorFilterExpressionLegend.java:178) <br> com.iver.cit.gvsig.fmap.layers.FLyrVect._draw(FLyrVect.java:448) <br>com.iver.cit.gvsig.fmap.layers.FLyrVect.draw(FLyrVect.java:627) <br>com.iver.cit.gvsig.fmap.DefaultMapContextDrawer.draw(DefaultMapContextDrawer.java:209) <br><br>com.iver.cit.gvsig.fmap.DefaultMapContextDrawer.draw(DefaultMapContextDrawer.java:175) <br> com.iver.cit.gvsig.fmap.MapContext.draw(MapContext.java:1088) <br>com.iver.cit.gvsig.fmap.MapControl$PaintingRequest.paint(MapControl.java:1043) <br><br>com.iver.cit.gvsig.fmap.MapControl$Drawer2$Worker.run(MapControl.java:1234) <br> java.lang.Thread.run(Unknown Source)<br><br>Cheers,<br>Antonio<br><br>Il 26/04/2012 22.21, Pablo Cuadrado ha scritto:<br>> Hi Benjamin,<br>> For me is dark too....but trying it works.<br>> With [field]>=0.5 works....
¿=?<br>> In more complex expressions I have a lot of errors and I don´t locate a<br>> good reference about this grammar.<br>> Best regards.<br>> --------------------<br>> Pablo Cuadrado<br>><br>> ------------------------------------------------------------------------<br>> *De:* Benjamin Ducke <<a ymailto="mailto:benducke@fastmail.fm" href="mailto:benducke@fastmail.fm">benducke@fastmail.fm</a>><br>> *Para:* Users and Developers mailing list<br>> <<a ymailto="mailto:gvsig_internacional@listserv.gva.es" href="mailto:gvsig_internacional@listserv.gva.es">gvsig_internacional@listserv.gva.es</a>><br>> *Enviado:* Jueves 26 de abril de 2012 17:29<br>> *Asunto:* [Gvsig_english] SLD grammar syntax<br>><br>> Dear All,<br>><br>> could someone shed some light on this eternal dark<br>> secret of gvSIG and provide some "SLD grammar" examples<br>> that can be used with the "Expression" filter and
the<br>> advanced labeling?<br>><br>> E.g. in the "Expression" filter (Symbology) I try to<br>> simply filter out all features for which "Field" has a<br>> value equal or greater than "0.5". I enter the following:<br>><br>> [Field] >= 0.5<br>><br>> And get an "Invalid expression" error.<br>><br>> What would be the correct syntax?<br>><br>> Thanks,<br>><br>> Ben<br>><br>> --<br>> Benjamin Ducke<br>> {*} Geospatial Consultant<br>> {*} GIS Developer<br>><br>> <a ymailto="mailto:benducke@fastmail.fm" href="mailto:benducke@fastmail.fm">benducke@fastmail.fm</a> <mailto:<a ymailto="mailto:benducke@fastmail.fm" href="mailto:benducke@fastmail.fm">benducke@fastmail.fm</a>><br>> _______________________________________________<br>> Gvsig_internacional mailing list<br>> <a ymailto="mailto:Gvsig_internacional@listserv.gva.es"
href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>> <mailto:<a ymailto="mailto:Gvsig_internacional@listserv.gva.es" href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a>><br>><br>> To see the archives, edit your preferences or unsubscribe from this<br>> mailing list, please access this url:<br>><br>> <a href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional" target="_blank">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a><br>><br>><br>><br>><br>> _______________________________________________<br>> Gvsig_internacional mailing list<br>> <a ymailto="mailto:Gvsig_internacional@listserv.gva.es" href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>><br>> To see the archives, edit your preferences or unsubscribe from this mailing list, please access
this url:<br>><br>> <a href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional" target="_blank">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a><br><br>-- <br>Antonio Falciano<br><a href="http://www.linkedin.com/in/antoniofalciano" target="_blank">http://www.linkedin.com/in/antoniofalciano</a><br>_______________________________________________<br>Gvsig_internacional mailing list<br><a ymailto="mailto:Gvsig_internacional@listserv.gva.es" href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br><br>To see the archives, edit your preferences or unsubscribe from this mailing list, please access this url:<br><br><a href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional" target="_blank">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a><br><br><br> </div> </div> </div></body></html>