[mapserver-dev] WFS Filter encoding issue

Yves Jacolin yves.jacolin at camptocamp.com
Tue Sep 11 01:17:29 PDT 2012


Hello,

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:
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

Unfortunately, something wrong occurs. GeoServer doesn't like <ogc:filter>
(i.e. the ogc namespace) in the Filter parameter.

The same request without "ogc" namespace works:
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

Does MS create wrong FILTER parameter in the request or GeoServer which
doesn't work as expected?

Thanks,

Y.
-- 

Responsable Formation et Support

Camptocamp France SAS

Savoie Technolac, BP 352

73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98

Mob. : +33 6 18 75 42 21

Fax : 04 79 70 15 81

Mail : yves.jacolin at camptocamp.com

http://www.camptocamp.com
<yves.jacolin at camptocamp.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20120911/5fafdea6/attachment.html>


More information about the mapserver-dev mailing list