WFS GetFeature and filter

Berend Veldkamp berend.veldkamp at ARIS.NL
Fri Sep 17 05:14:16 EDT 2004


Hi,

Does anyone have an example of how to do a GetFeature request with a
filter? I can get *all* features with
http://localhost/cgi-bin/mapserv.exe?map=test.map&typename=nap
   &request=getfeature&service=wfs&format=text/xml&version=1.0.0

(wrapped for readability)

but when I try to set a filter, i.e.
http://localhost/cgi-bin/mapserv.exe?map=test.map&typename=nap
   &request=getfeature&service=wfs&format=text/xml&version=1.0.0
   &filter=<Filter><PropertyIsEqualTo>
   <PropertyName>pnt_pntid</PropertyName><Literal>032D0243</Literal>
   </PropertyIsEqualTo></Filter>
MapServer returns:

<wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs
   http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd
   http://www.ttt.org/myns
   http://localhost/cgi-bin/mapserv.exe?map=test.map
   &SERVICE=WFS&VERSION=1.0.0
   &REQUEST=DescribeFeatureType&TYPENAME=nap">
<gml:boundedBy>
   <gml:null>inapplicable</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>


Thanks, Berend

--
____________________________

Berend Veldkamp - ARIS
http://www.aris.nl/
____________________________



More information about the mapserver-users mailing list