<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Brilliant! :-)<br>
<br>
El 27/04/2012 11:11, Juan Lucas Dominguez Rubio escribió:
<blockquote
cite="mid:E43C32BC5843E34FB4C00CDFAAAAF7D8017B564A@australia.prodevelop.local"
type="cite">
<title>Re: [Gvsig_english] SLD grammar syntax</title>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 9.00.8112.16443">
<div id="idOWAReplyText48984">
<div><font color="#000000" face="Times New Roman" size="3">Hello.
Instead of the boring:</font></div>
<div> </div>
<div><font color="#000000" face="Times New Roman" size="3">[Field]
>= 3.14159</font></div>
<div> </div>
<div><font color="#000000" face="Times New Roman" size="3">you
can use Ancient Egypt's approximate fraction:</font></div>
<div> </div>
<div><font color="#000000" face="Times New Roman" size="3">[Field]
>= (256 / 81)<br>
<br>
Hope it helps ;-)</font></div>
<div> </div>
<div> </div>
<div><font face="Courier New" size="2"><font face="Times New
Roman" size="3">Juan Lucas Domínguez Rubio<br>
</font>---</font></div>
</div>
<div id="idSignature80611">
<div><font face="Courier New" size="2"><font face="Courier New"
size="2"><font face="Courier New" size="2">Prodevelop SL,
Valencia (España)</font></font></font></div>
<font face="Courier New" size="2"><font face="Courier New"
size="2">
</font>
<div><font face="Courier New" size="2">
<div><font face="Courier New" size="2">Tlf.: 96.351.06.12
-- Fax: 96.351.09.68<br>
</font><a moz-do-not-send="true"
href="http://www.prodevelop.es/"><font face="Courier
New" size="2">http://www.prodevelop.es</font></a><br>
<font face="Courier New" size="2">---</font></div>
</font></div>
</font></div>
<div><br>
<hr>
<font face="Tahoma" size="2"><b>De:</b>
<a class="moz-txt-link-abbreviated" href="mailto:gvsig_internacional-bounces@listserv.gva.es">gvsig_internacional-bounces@listserv.gva.es</a> en nombre de
Antonio Falciano<br>
<b>Enviado el:</b> vie 27/04/2012 10:50<br>
<b>Para:</b> <a class="moz-txt-link-abbreviated" href="mailto:gvsig_internacional@listserv.gva.es">gvsig_internacional@listserv.gva.es</a><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:* <a class="moz-txt-link-abbreviated" href="mailto:gvsig_internacional@listserv.gva.es">gvsig_internacional@listserv.gva.es</a><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 <<a class="moz-txt-link-abbreviated" href="mailto:benducke@fastmail.fm">benducke@fastmail.fm</a>
<<a moz-do-not-send="true"
href="mailto:benducke@fastmail.fm">mailto:benducke@fastmail.fm</a>>><br>
> > *Para:* Users and Developers mailing list<br>
> > <<a class="moz-txt-link-abbreviated" href="mailto:gvsig_internacional@listserv.gva.es">gvsig_internacional@listserv.gva.es</a><br>
> <<a moz-do-not-send="true"
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>
> > <a class="moz-txt-link-abbreviated" href="mailto:benducke@fastmail.fm">benducke@fastmail.fm</a> <<a
moz-do-not-send="true" href="mailto:benducke@fastmail.fm">mailto:benducke@fastmail.fm</a>><br>
> <<a moz-do-not-send="true"
href="mailto:benducke@fastmail.fm%20%3Cmailto:benducke@fastmail.fm">mailto:benducke@fastmail.fm
</a>>><br>
> > _______________________________________________<br>
> > Gvsig_internacional mailing list<br>
> > <a class="moz-txt-link-abbreviated" href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>
> <<a moz-do-not-send="true"
href="mailto:Gvsig_internacional@listserv.gva.es">mailto:Gvsig_internacional@listserv.gva.es</a>><br>
> > <<a class="moz-txt-link-freetext" href="mailto:Gvsig_internacional@listserv.gva.es">mailto:Gvsig_internacional@listserv.gva.es</a><br>
> <<a moz-do-not-send="true"
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 moz-do-not-send="true"
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>
> > <a class="moz-txt-link-abbreviated" href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>
> <<a moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.linkedin.com/in/antoniofalciano">http://www.linkedin.com/in/antoniofalciano</a><br>
> _______________________________________________<br>
> Gvsig_internacional mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>
> <<a moz-do-not-send="true"
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 moz-do-not-send="true"
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>
> <a class="moz-txt-link-abbreviated" 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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.linkedin.com/in/antoniofalciano">http://www.linkedin.com/in/antoniofalciano</a><br>
_______________________________________________<br>
Gvsig_internacional mailing list<br>
<a class="moz-txt-link-abbreviated" 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 moz-do-not-send="true"
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 moz-do-not-send="true" title="gfidisc.prodevelop.es" href="#">
</a>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gvsig_internacional mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a>
To see the archives, edit your preferences or unsubscribe from this mailing list, please access this url:
<a class="moz-txt-link-freetext" href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Fran Peñarrubia
Scolab
<a class="moz-txt-link-abbreviated" href="http://www.scolab.es">www.scolab.es</a>
Asociación gvSIG
<a class="moz-txt-link-abbreviated" href="http://www.gvsig.com">www.gvsig.com</a>
</pre>
</body>
</html>