<div dir="ltr"><div>Hi all!</div><div><br></div><div>I need to query this WFS public service </div><div><br></div><div><a href="http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities">http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities</a><br></div><div><br></div><div>The layer I need to query is this one</div><div><br></div><div><a href="http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType">http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType</a></div><div><br></div><div>It's a layer with a very big number of point features.</div><div><br></div><div>The OGC service is done using MapServer but I don't know the version.</div><div><br></div><div>I need to query this layer in a no spatial way: the simplest query I need to do is something like this one</div><div><br></div><div>    <a href="http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=">http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=</a><Filter><PropertyIsEqualTo><PropertyName>id</PropertyName><Literal>13800000050414</Literal></PropertyIsEqualTo></Filter></div><div><br></div><div>My final query would like to combine several clauses using the AND logical operator.</div><div><br></div><div>Unfortunately at the moment the simplest query above doesn't work: if you try it in the response ther will be something like </div><div><br></div><div>HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts</div><div><br></div><div>I've done several attempts to change it and I've tried other queries: for example</div><div><br></div><div>1) this one ...</div><div><br></div><div><a href="http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E">http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E</a></div><div><br></div><div><br></div><div>returns </div><div><br></div><div>    <gml:boundedBy><gml:null>missing</gml:null></gml:boundedBy></div><div><br></div><div>so I think that in this case the sintax could be right but I'm not sure and I don0't understand because the response is null </div><div><br></div><div>2) trying to do a spatial query like this one ...</div><div><br></div><div>    <a href="http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E">http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E</a></div><div><br></div><div>returns a right response.</div><div><br></div><div>I've found on the web that probably there is a workaround ...</div><div><br></div><div><a href="http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402">http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402</a></div><div><br></div><div>that suggest to use the PropertyIsLike operator instead of the PropertyIsEqual. I've tried to use it but it doesn't work in my case ... </div><div><br></div><div><a href="http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E">http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E</a></div><div><br></div><div>in this case after a long time it seems that the service goes in time out and no data is returned .... </div><div><br></div><div>Now I am completely blocked .... :-(</div><div><br></div><div>Any suggestions / workaround? </div><div><br></div><div>Thank you very much in advance ...</div><div><br></div><div>Cesare</div><div><br></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Cesare Gerbino<br><br><a href="http://cesaregerbino.wordpress.com/" target="_blank">http://cesaregerbino.wordpress.com/</a><br><a href="http://www.facebook.com/cesare.gerbino" target="_blank">http://www.facebook.com/cesare.gerbino</a><br><a href="http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl" target="_blank">http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl</a><br><a href="https://twitter.com/CesareGerbino" target="_blank">https://twitter.com/CesareGerbino</a><br><a href="http://www.linkedin.com/pub/cesare-gerbino/56/494/77b" target="_blank">http://www.linkedin.com/pub/cesare-gerbino/56/494/77b</a></div><div><br></div><div><span style="color:rgb(85,85,85);font-family:Verdana,'BitStream vera Sans',Helvetica,sans-serif;font-size:12px;line-height:17.3999996185303px">Questo è un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono p</span><span style="color:rgb(85,85,85);font-family:Verdana,'BitStream vera Sans',Helvetica,sans-serif;font-size:12px;line-height:17.3999996185303px">ersonali e non riflettono necessariamente quelle del mio datore di lavoro</span></div><div><span style="color:rgb(85,85,85);font-family:Verdana,'BitStream vera Sans',Helvetica,sans-serif;font-size:12px;line-height:17.3999996185303px"><br></span></div><div><span style="color:rgb(85,85,85);font-family:Verdana,'BitStream vera Sans',Helvetica,sans-serif;font-size:12px;line-height:17.3999996185303px">This is Cesare Gerbino mail account. Text is written by Cesare Gerbino:  the views expressed  are mine and not necessarily those of my employer.</span><span style="color:rgb(85,85,85);font-family:Verdana,'BitStream vera Sans',Helvetica,sans-serif;font-size:12px;line-height:17.3999996185303px"><br></span></div><div><span style="color:rgb(85,85,85);font-family:Verdana,'BitStream vera Sans',Helvetica,sans-serif;font-size:12px;line-height:17.3999996185303px">.</span><br><br></div></div></div></div></div></div></div></div>
</div>