Hi Olivier,<br><br>I resolved it.<br><br>The "and" operator is named using the first letter uppercase.<br><br>So <And> is recognized, meanwhile <AND> was not recognized.<br>I guest perhaps there is some bugs, but not really sure.<br>
<br>However this version of the request work and has the right result.<br><br><a href="http://web.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=infrastrutture:rt_infr_idstrade_rt_bb&propertyName=geometry,dug,toponimo,den_estesa,tipo_prop,cod_istat,comune&sortBy=dug+A,toponimo+A&Filter=">http://web.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=infrastrutture:rt_infr_idstrade_rt_bb&propertyName=geometry,dug,toponimo,den_estesa,tipo_prop,cod_istat,comune&sortBy=dug+A,toponimo+A&Filter=</a><Filter xmlns:wfs="<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>"><And><PropertyIsEqualTo><PropertyName>comune</PropertyName><Literal>FIRENZE</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>tipo_prop</PropertyName><Literal>Comune</Literal></PropertyIsEqualTo></And></Filter><br>
<br>Many thx,<br><br><br><div class="gmail_quote">2012/10/14 Olivier Courtin <span dir="ltr"><<a href="mailto:olivier.courtin@gmail.com" target="_blank">olivier.courtin@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sun, Oct 14, 2012 at 12:04 PM, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><br>Andrea,<div class="im"><br><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If the AND operator is supported from TinyOWS, this mean that I'm wrong something else.<br><br>Any hint is welcome<br></blockquote><div><br></div></div><div>If i check with WFS 1.1 CITE:</div><div>$ sudo make install-test110</div>
<div><br></div><div>There 3 tests related to And Logical Operator with GetFeature -> 0210 to 0212:</div><div>So take one:</div><div>$ test/unit_test test/wfs_110/cite/0211 4</div><div><br></div><div>Input query:</div>
<div>
<?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>" xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>" xmlns:p="<a href="http://teamengine.sourceforge.net/parsers" target="_blank">http://teamengine.sourceforge.net/parsers</a>" xmlns:xi="<a href="http://www.w3.org/2001/XInclude" target="_blank">http://www.w3.org/2001/XInclude</a>" xmlns:saxon="<a href="http://saxon.sf.net/" target="_blank">http://saxon.sf.net/</a>" xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.org/1999/xlink</a>" xmlns="<a href="http://www.occamlab.com/ctl" target="_blank">http://www.occamlab.com/ctl</a>" xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a>" xmlns:ows="<a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a>" xmlns:ctl="<a href="http://www.occamlab.com/ctl" target="_blank">http://www.occamlab.com/ctl</a>" xmlns:sf="<a href="http://cite.opengeospatial.org/gmlsf" target="_blank">http://cite.opengeospatial.org/gmlsf</a>" xmlns:tec="java:com.occamlab.te.TECore" xmlns:te="<a href="http://www.occamlab.com/te" target="_blank">http://www.occamlab.com/te</a>" xmlns:parsers="<a href="http://www.occamlab.com/te/parsers" target="_blank">http://www.occamlab.com/te/parsers</a>" xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>" xmlns:myparsers="<a href="http://teamengine.sourceforge.net/parsers" target="_blank">http://teamengine.sourceforge.net/parsers</a>" version="1.1.0" service="WFS"><wfs:Query typeName="sf:AggregateGeoFeature"><ogc:Filter><ogc:And><ogc:PropertyIsGreaterThanOrEqualTo><ogc:PropertyName>sf:doubleProperty</ogc:PropertyName><ogc:Literal>24510</ogc:Literal></ogc:PropertyIsGreaterThanOrEqualTo><ogc:PropertyIsEqualTo matchCase="false"><ogc:PropertyName>sf:featureCode</ogc:PropertyName><ogc:Literal>ak020</ogc:Literal></ogc:PropertyIsEqualTo></ogc:And></ogc:Filter></wfs:Query></wfs:GetFeature></div>
<div><br></div><div><br></div><div>SQL Request produced:</div><div>SELECT "description","name",ST_AsGML(3, ST_Transform("multiPointProperty"::geometry,4326),6, 23) AS "multiPointProperty" ,ST_AsGML(3, ST_Transform("multiCurveProperty"::geometry,4326),6, 23) AS "multiCurveProperty" ,ST_AsGML(3, ST_Transform("multiSurfaceProperty"::geometry,4326),6, 23) AS "multiSurfaceProperty" ,"doubleProperty","intRangeProperty","strProperty","featureCode","id" FROM public."AggregateGeoFeature" WHERE ("doubleProperty" >= 24510 AND lower("featureCode") = lower('ak020'))</div>
<div><br></div><div><br></div><div>I didn't look in detail to you query for now,</div><div>let me know it this sample is enough to you (or not),</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div>
<span class="HOEnZb"><font color="#888888">-- <br>Olivier<br>
</font></span><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br><br>