Why does my WFS filter not work?

Yewondwossen Assefa yassefa at DMSOLUTIONS.CA
Fri Nov 30 17:18:58 EST 2007


Gregor,

  I don't see anything wrong with the request. I also tested locally the 
latest Mapserver svn with a local postgis layer using the same kind of 
request and I did have the expected result. (From what I can see, the 
layer in question is a postgis layer, is this correct ?)
If possible, please send me a "small" dump of your layer (shape would be 
good) and a map file and I can load it locally and do the same kind of 
requests to see what is happening.

Best Regards,

Gregor Mosheh wrote:
> 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?
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-users mailing list