[mapserver-users] RE: filter doesn't work (wfs)

Morten Sickel Morten.Sickel at nrpa.no
Thu Aug 13 07:05:11 EDT 2009


Retrying, this time with a numerical attribute, it works. :-) But as far as I can see from the examples, it should also work with textual data? 

using mapserver 5.4.2 from ms4w.

Morten



-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Morten Sickel
Sent: Wednesday, August 12, 2009 3:12 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] filter doesn't work (wfs)

I have set up a mapserver wfs-server. Works fine, except that I cannot get Filter= to work. I tried urls like those at the bottom on http://mapserver.org/ogc/filter_encoding.html , but got all the data back in all cases. I tested it in a browser and to a working url, I appended 

&Filter=<Filter><PropertyIsNotEqualTo><PropertyName>status</PropertyName>
<Literal>RUN</Literal></PropertyIsNotEqualTo></Filter>

Where status is one of the fields on the WFS coverage and some of the items has status=RUN. I also tried <PropertyIsEqualTo> but in both cases, I got the complete data set returned. By setting <PropertyName> to an invalid value, I managed to get an empty data set. From the documentation, it seems like I do it the right way, but something must be wrong. I hope someone can enlighten me.

--
Morten Sickel
Norwegian Radiation Protection Authority _______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list