<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>if Mapserver uses the ogc prefix, it should at least include xmlns:ogc as well, e.g.:</div><div><br></div><div><a href="http://geobretagne.fr/geoserver/ref/wfs?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=ref:cadastre_parcelle&FILTER=%3Cogc%3AFilter%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eid_region%3C%2FPropertyName%3E%3CLiteral%3E35092000WE0059%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E&MAXFEATURES=10000">http://geobretagne.fr/geoserver/ref/wfs?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=ref:cadastre_parcelle&FILTER=%3Cogc%3AFilter%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eid_region%3C%2FPropertyName%3E%3CLiteral%3E35092000WE0059%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E&MAXFEATURES=10000</a></div><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; ">-- <br>Bart van den Eijnden<br>OSGIS - <a href="http://osgis.nl">http://osgis.nl</a></span>
</div>
<br><div><div>On Sep 11, 2012, at 10:17 AM, Yves Jacolin <<a href="mailto:yves.jacolin@camptocamp.com">yves.jacolin@camptocamp.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<br><br>I am using MS as a WFS client with a GeoServer instance. I am using Filter parameter in the layer object. The request sent by MS is this one:<br><a href="http://geobretagne.fr/geoserver/ref/wfs?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=ref:cadastre_parcelle&FILTER=%3Cogc%3AFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eid_region%3C%2FPropertyName%3E%3CLiteral%3E35092000WE0059%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E&MAXFEATURES=10000" target="_blank">http://geobretagne.fr/geoserver/ref/wfs?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=ref:cadastre_parcelle&FILTER=%3Cogc%3AFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eid_region%3C%2FPropertyName%3E%3CLiteral%3E35092000WE0059%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E&MAXFEATURES=10000</a>
<br clear="all"><br>Unfortunately, something wrong occurs. GeoServer doesn't like <ogc:filter> (i.e. the ogc namespace) in the Filter parameter.<br><br>The same request without "ogc" namespace works: <br>
<a href="http://geobretagne.fr/geoserver/ref/wfs?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=ref:cadastre_parcelle&FILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eid_region%3C%2FPropertyName%3E%3CLiteral%3E35092000WE0059%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3CFilter%3E&MAXFEATURES=10000">http://geobretagne.fr/geoserver/ref/wfs?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=ref:cadastre_parcelle&FILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eid_region%3C%2FPropertyName%3E%3CLiteral%3E35092000WE0059%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3CFilter%3E&MAXFEATURES=10000</a><br>
<br>Does MS create wrong FILTER parameter in the request or GeoServer which doesn't work as expected?<br><br>Thanks,<br><br>Y.<br>-- <br><div style="margin: 0px; text-indent: 0px; ">Responsable Formation et Support</div><div style="margin: 0px; text-indent: 0px; ">Camptocamp France SAS</div><div style="margin: 0px; text-indent: 0px; ">Savoie Technolac, BP 352</div><div style="margin: 0px; text-indent: 0px; ">73377 Le Bourget du Lac, Cedex</div><div style="margin: 0px; text-indent: 0px; ">Tel (France) : +33 4 79 26 57 98</div><div style="margin: 0px; text-indent: 0px; ">Mob. : +33 6 18 75 42 21</div><div style="margin: 0px; text-indent: 0px; ">Fax : 04 79 70 15 81</div><div style="margin: 0px; text-indent: 0px; ">Mail : <a href="mailto:yves.jacolin@camptocamp.com" target="_blank">yves.jacolin@camptocamp.com</a></div><div style="margin: 0px; text-indent: 0px; "><a href="http://www.camptocamp.com/" target="_blank">http://www.camptocamp.com</a></div><a href="mailto:yves.jacolin@camptocamp.com" target="_blank"></a><br>
_______________________________________________<br>mapserver-dev mailing list<br><a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/mapserver-dev<br></blockquote></div><br></div></body></html>