[mapserver-dev] WFS Filter encoding issue
Bart van den Eijnden
bartvde at osgis.nl
Tue Sep 11 01:24:39 PDT 2012
Hi,
if Mapserver uses the ogc prefix, it should at least include xmlns:ogc as well, e.g.:
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
Best regards,
Bart
--
Bart van den Eijnden
OSGIS - http://osgis.nl
On Sep 11, 2012, at 10:17 AM, Yves Jacolin <yves.jacolin at camptocamp.com> wrote:
> 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
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20120911/f5a9c082/attachment-0001.html>
More information about the mapserver-dev
mailing list