[mapserver-users] WFS with Filter

Jörg Thomsen jt at mapmedia.de
Mon Oct 31 12:14:28 EDT 2011


Hello,

I have found some older list-entries concerning this topic, but no final
solution.
I am using MapServer version 6.0.1 as WFS, the getFeature returns a nice
XML I can use e.g. in QGIS, so everything seems to be fine. But when I
use a filter in my request like
> http://xxx/cgi-bin/mapserv?map=/data/UMN/bundeslaender.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Bundeslaender_1000&SRSNAME=EPSG:4326&
> FILTER=%20%3Cogc:Filter%3E%3Cogc:PropertyIsLike%20wildCard=%27*%27%20singleChar=%27.%27%20escape=%27!%27%3E%3Cogc:PropertyName%3Ebundesland%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*BRANDENBURG*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E

I get the following answer:
> <wfs:FeatureCollection .....>
>    <gml:boundedBy>
>       <gml:null>missing</gml:null>
>    </gml:boundedBy>
> </wfs:FeatureCollection>

Using the same PG-DB with Mapserver 5.6 the request works.

In former threads I found the questions if it does work with geodata
based on shape-files:
1. it dos not
2. I have to use PG

Anyone any idea?

Jörg




More information about the mapserver-users mailing list