Why does my WFS filter not work?

Gregor Mosheh gregor at HOSTGIS.COM
Fri Nov 30 11:51:16 PST 2007


Hey, all.
I have my Mapserver WFS server basically working, and can do BBOX queries:

http://69.59.158.15/cgi-bin/mapserv?map=/maps/spraywatch2/wms/mapfile.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&typename=parcels&srs=EPSG:4326&bbox=168.011840820312,-46.9196395874023,168.127075195312,-46.896656036377)

But I can't filter by other features:

http://69.59.158.15/cgi-bin/mapserv?map=/maps/spraywatch2/wms/mapfile.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&typename=parcels&Filter=<Filter><PropertyIsEqualTo><PropertyName>gid</PropertyName><Literal>2389524</Literal></PropertyIsEqualTo></Filter>

If you look closely, you'll see that the first feature listed in the 
bbox URL is the one being queried in the second URL, gid=2389524

What am I missing here?

-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA



More information about the MapServer-users mailing list