<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=idOWAReplyText92992>
<DIV><FONT color=#000000 size=3 face="Times New Roman">Hello,</FONT></DIV>
<DIV><FONT color=#000000 size=3 face="Times New Roman">Just one little remark: the word "secret" makes no sense in this context because we are dealing with open-source software. If someone wants to know in detail how gvSIG or any of its dependencies work, then the source code is right there, waiting for you. No "black boxes" here.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000 size=3 face="Times New Roman">Let us hope Benjamin's message was not some kind of innuendo ;-)</FONT></DIV>
<DIV><FONT color=#000000 size=3 face="Times New Roman"></FONT> </DIV>
<DIV>Regards,</DIV></DIV>
<DIV id=idSignature57467>
<DIV><FONT size=2 face="Courier New"><FONT size=3 face="Times New Roman">Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV>
<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 Benjamin Ducke<BR><B>Enviado el:</B> vie 27/04/2012 14:59<BR><B>Para:</B> Users mailing list<BR><B>Asunto:</B> Re: [Gvsig_english] SLD grammar syntax<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>See, that's what I call a dark secret.<BR><BR>Thanks, people, for all these suggestions.<BR>Surely, one of them must trick that parser<BR>into accepting my simple filter statement.<BR><BR>Cheers,<BR><BR>Ben<BR><BR>On 04/27/2012 11:38 AM, Juan Lucas Dominguez Rubio wrote:<BR>> Amazing. What about these?<BR>> [field] >= (0.5/1)<BR>> [field] >= (0.5)<BR>><BR>> (my last message , I promise)<BR>> Regards,<BR>> Juan Lucas Domínguez Rubio<BR>> ---<BR>> Prodevelop SL, Valencia (España)<BR>> Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR>> <A href="http://www.prodevelop.es/">http://www.prodevelop.es</A> <<A href="http://www.prodevelop.es/">http://www.prodevelop.es/</A>><BR>> ---<BR>><BR>> ------------------------------------------------------------------------<BR>> *De:* gvsig_internacional-bounces@listserv.gva.es en nombre de Antonio<BR>> Falciano<BR>> *Enviado el:* vie 27/04/2012 11:31<BR>> *Para:* gvsig_internacional@listserv.gva.es<BR>> *Asunto:* Re: [Gvsig_english] SLD grammar syntax<BR>><BR>> Archaic solution that works fine in gvSIG 1.12 devel too! ;) Although,<BR>> at least one among numerator and denominator has to be double.<BR>> So, instead of<BR>><BR>> [field]>=0.5<BR>><BR>> we have to type<BR>><BR>> [field]>=(1.0/2)<BR>><BR>> or<BR>><BR>> [field]>=(1/2.0)<BR>><BR>> Cheers,<BR>> Antonio<BR>><BR>> Il 27/04/2012 11.12, Francisco José Peñarrubia ha scritto:<BR>> > Brilliant! :-)<BR>> ><BR>> > El 27/04/2012 11:11, Juan Lucas Dominguez Rubio escribió:<BR>> >> Hello. Instead of the boring:<BR>> >> [Field] >= 3.14159<BR>> >> you can use Ancient Egypt's approximate fraction:<BR>> >> [Field] >= (256 / 81)<BR>> >><BR>> >> Hope it helps ;-)<BR>> >> Juan Lucas Domínguez Rubio<BR>> >> ---<BR>> >> Prodevelop SL, Valencia (España)<BR>> >> Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR>> >> <A href="http://www.prodevelop.es/">http://www.prodevelop.es</A> <<A href="http://www.prodevelop.es/">http://www.prodevelop.es/</A>><BR>> <<A href="http://www.prodevelop.es/">http://www.prodevelop.es/</A>><BR>> >> ---<BR>> >><BR>> >> ------------------------------------------------------------------------<BR>> >> *De:* gvsig_internacional-bounces@listserv.gva.es en nombre de Antonio<BR>> >> Falciano<BR>> >> *Enviado el:* vie 27/04/2012 10:50<BR>> >> *Para:* gvsig_internacional@listserv.gva.es<BR>> >> *Asunto:* Re: [Gvsig_english] SLD grammar syntax<BR>> >><BR>> >> 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>> ------------------------------------------------------------------------<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]"<BR>> sun.misc.FloatingDecimal.readJavaFormatString(Unknown<BR>> >> > Source) java.lang.Double.valueOf(Unknown Source) java.lang.Double.<BR>> >> > (Unknown Source)<BR>> >> ><BR>> >><BR>> org.gvsig.symbology.fmap.rendering.filter.operations.GreaterThanOrEqualsOperator.evaluate(GreaterThanOrEqualsOperator.java:74)<BR>> >> ><BR>> >> ><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>> >> ><BR>> >><BR>> com.iver.cit.gvsig.fmap.DefaultMapContextDrawer.draw(DefaultMapContextDrawer.java:209)<BR>> >> ><BR>> >> ><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>> >> ><BR>> >><BR>> com.iver.cit.gvsig.fmap.MapControl$PaintingRequest.paint(MapControl.java:1043)<BR>> >> ><BR>> >> ><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<BR>> >> locate a<BR>> >> > > good reference about this grammar.<BR>> >> > > Best regards.<BR>> >> > > --------------------<BR>> >> > > Pablo Cuadrado<BR>> >> > ><BR>> >> > ><BR>> >> ------------------------------------------------------------------------<BR>> >> > > *De:* Benjamin Ducke <benducke@fastmail.fm<BR>> >> <<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>> >> > <mailto:benducke@fastmail.fm<BR>> >> <<A href="mailto:benducke@fastmail.fm%20%3Cmailto:benducke@fastmail.fm">mailto:benducke@fastmail.fm%20%3Cmailto: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<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>> >><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>> >> *CLÁUSULA DE PROTECCIÓN DE DATOS*<BR>> >> Este mensaje se dirige exclusivamente a su destinatario y puede<BR>> >> contener información privilegiada o confidencial. Si ha recibido este<BR>> >> mensaje por error, le rogamos que nos lo comunique inmediatamente por<BR>> >> 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<BR>> >> Información y Comercio Electrónico aprobada por el parlamento español<BR>> >> y de la vigente Ley Orgánica 15/1999 de Protección de Datos española,<BR>> >> le comunicamos que su dirección de Correo electrónico forma parte de<BR>> >> un fichero automatizado, teniendo usted derecho de oposición, acceso,<BR>> >> rectificación y cancelación de sus datos.<BR>> >><BR>> >> *DATA PROTECTION CLAUSE*<BR>> >> This message is meant for its addressee only and may contain<BR>> >> privileged or confidential information. If you have received this<BR>> >> message by mistake please let us know immediately by e-mail prior to<BR>> >> destroying it.<BR>> >> In compliance with the new Information and Electronic Commerce Society<BR>> >> Services Law recently approved by the Spanish Parliament and with<BR>> >> Organic Law 15/1999 currently in force, your e-mail address has been<BR>> >> included in our computerised records in respect of which you may<BR>> >> exercise your right to oppose, access, amend and/or cancel your<BR>> >> personal data.<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<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>> > Fran Peñarrubia<BR>> > Scolab<BR>> > www.scolab.es<BR>> ><BR>> > Asociación gvSIG<BR>> > www.gvsig.com<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<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>><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>> *CLÁUSULA DE PROTECCIÓN DE DATOS*<BR>> Este mensaje se dirige exclusivamente a su destinatario y puede contener<BR>> información privilegiada o confidencial. Si ha recibido este mensaje por<BR>> error, le rogamos que nos lo comunique inmediatamente por esta misma vía<BR>> y proceda a su destrucción.<BR>> De acuerdo con la nueva ley Ley de Servicios de la Sociedad de la<BR>> Información y Comercio Electrónico aprobada por el parlamento español y<BR>> de la vigente Ley Orgánica 15/1999 de Protección de Datos española, le<BR>> comunicamos que su dirección de Correo electrónico forma parte de un<BR>> fichero automatizado, teniendo usted derecho de oposición, acceso,<BR>> rectificación y cancelación de sus datos.<BR>><BR>> *DATA PROTECTION CLAUSE*<BR>> This message is meant for its addressee only and may contain privileged<BR>> or confidential information. If you have received this message by<BR>> mistake please let us know immediately by e-mail prior to destroying it.<BR>> In compliance with the new Information and Electronic Commerce Society<BR>> Services Law recently approved by the Spanish Parliament and with<BR>> Organic Law 15/1999 currently in force, your e-mail address has been<BR>> included in our computerised records in respect of which you may<BR>> exercise your right to oppose, access, amend and/or cancel your personal<BR>> data.<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><BR>--<BR>Benjamin Ducke<BR>{*} Geospatial Consultant<BR>{*} GIS Developer<BR><BR> benducke@fastmail.fm<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>