<HTML><HEAD><TITLE>Re: [Gvsig_english] SLD grammar syntax</TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16443"></HEAD>
<BODY>
<DIV id=idOWAReplyText48984>
<DIV><FONT color=#000000 size=3 face="Times New Roman">Hello. Instead of the boring:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000 size=3 face="Times New Roman">[Field] >= 3.14159</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000 size=3 face="Times New Roman">you can use Ancient Egypt's approximate fraction:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000 size=3 face="Times New Roman">[Field] >= (256 / 81)<BR><BR>Hope it helps ;-)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face="Courier New"><FONT size=3 face="Times New Roman"></FONT></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><FONT size=3 face="Times New Roman">Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV></DIV>
<DIV id=idSignature80611>
<DIV><FONT size=2 face="Courier New"><FONT size=2 face="Courier New"><FONT size=2 face="Courier New">Prodevelop SL, Valencia (España)</FONT></DIV>
<DIV>
<DIV><FONT size=2 face="Courier New">Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR></FONT><A href="http://www.prodevelop.es/"><FONT size=2 face="Courier New">http://www.prodevelop.es</FONT></A><BR><FONT size=2 face="Courier New">---</FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><BR>
<HR>
<FONT size=2 face=Tahoma><B>De:</B> gvsig_internacional-bounces@listserv.gva.es en nombre de Antonio Falciano<BR><B>Enviado el:</B> vie 27/04/2012 10:50<BR><B>Para:</B> gvsig_internacional@listserv.gva.es<BR><B>Asunto:</B> Re: [Gvsig_english] SLD grammar syntax<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Il 27/04/2012 10.13, Pablo Cuadrado ha scritto:<BR>> Hi,<BR>> In gvSIG 1.11 works with [field]>=0.5<BR><BR>Hi Pablo,<BR>yes, I can confirm, so this is only a new bug in gvSIG 1.12 devel.<BR><BR>> Antonio, ¿Do you know a reference about this grammar?<BR><BR>About SLD syntax? Unfortunately not, but it's quite similar to SQL.<BR>I suggest only to remember these basic rules:<BR>1) use only the available operators in the right textbox;<BR>2) use "text" instead of 'text' (differently from the Filter syntax);<BR>3) wildcards are not allowed;<BR>4) finally, check always if the expression is valid ...That's all! ;)<BR><BR>Cheers,<BR>Antonio<BR><BR>> Regards.<BR>> --------------------<BR>> Pablo Cuadrado<BR>><BR>> ------------------------------------------------------------------------<BR>> *De:* Antonio Falciano<BR>> *Para:* gvsig_internacional@listserv.gva.es<BR>> *Enviado:* Viernes 27 de abril de 2012 9:57<BR>> *Asunto:* Re: [Gvsig_english] SLD grammar syntax<BR>><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>><BR>> org.gvsig.symbology.fmap.rendering.VectorFilterExpressionLegend.getSymbolByFeature(VectorFilterExpressionLegend.java:178)<BR>><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>><BR>> com.iver.cit.gvsig.fmap.DefaultMapContextDrawer.draw(DefaultMapContextDrawer.java:175)<BR>><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>><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 <benducke@fastmail.fm <<A href="mailto:benducke@fastmail.fm">mailto:benducke@fastmail.fm</A>>><BR>> > *Para:* Users and Developers mailing list<BR>> > <gvsig_internacional@listserv.gva.es<BR>> <<A href="mailto:gvsig_internacional@listserv.gva.es">mailto: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>> > benducke@fastmail.fm <<A href="mailto:benducke@fastmail.fm">mailto:benducke@fastmail.fm</A>><BR>> <<A href="mailto:benducke@fastmail.fm%20%3Cmailto:benducke@fastmail.fm">mailto:benducke@fastmail.fm </A>>><BR>> > _______________________________________________<BR>> > Gvsig_internacional mailing list<BR>> > Gvsig_internacional@listserv.gva.es<BR>> <<A href="mailto:Gvsig_internacional@listserv.gva.es">mailto:Gvsig_internacional@listserv.gva.es</A>><BR>> > <mailto:Gvsig_internacional@listserv.gva.es<BR>> <<A href="mailto:Gvsig_internacional@listserv.gva.es">mailto: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">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</A><BR>> ><BR>> ><BR>> ><BR>> ><BR>> > _______________________________________________<BR>> > Gvsig_internacional mailing list<BR>> > Gvsig_internacional@listserv.gva.es<BR>> <<A href="mailto:Gvsig_internacional@listserv.gva.es">mailto: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">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">http://www.linkedin.com/in/antoniofalciano</A><BR>> _______________________________________________<BR>> Gvsig_internacional mailing list<BR>> Gvsig_internacional@listserv.gva.es<BR>> <<A href="mailto:Gvsig_internacional@listserv.gva.es">mailto: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">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</A><BR>><BR>><BR>><BR>><BR>> _______________________________________________<BR>> Gvsig_internacional mailing list<BR>> Gvsig_internacional@listserv.gva.es<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">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">http://www.linkedin.com/in/antoniofalciano</A><BR>_______________________________________________<BR>Gvsig_internacional mailing list<BR>Gvsig_internacional@listserv.gva.es<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">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</A><BR></FONT></P></DIV><HR>
<DIV style="TEXT-ALIGN: justify; LINE-HEIGHT: 15px; FONT-FAMILY: Verdana, Geneva, sans-serif; COLOR: #999; FONT-SIZE: 9px"><B>CLÁUSULA DE PROTECCIÓN DE DATOS</B><BR>Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.<BR>De acuerdo con la nueva ley Ley de Servicios de la Sociedad de la Información y Comercio Electrónico aprobada por el parlamento español y de la vigente Ley Orgánica 15/1999 de Protección de Datos española, le comunicamos que su dirección de Correo electrónico forma parte de un fichero automatizado, teniendo usted derecho de oposición, acceso, rectificación y cancelación de sus datos. <BR><BR><B>DATA PROTECTION CLAUSE</B><BR>This message is meant for its addressee only and may contain privileged or confidential information. If you have received this message by mistake please let us know immediately by e-mail prior to destroying it. <BR>In compliance with the new Information and Electronic Commerce Society Services Law recently approved by the Spanish Parliament and with Organic Law 15/1999 currently in force, your e-mail address has been included in our computerised records in respect of which you may exercise your right to oppose, access, amend and/or cancel your personal data.</DIV><A title="gfidisc.prodevelop.es" href="#"> </A></BODY></HTML>