[mapserver-users] Problem with WFS Filter

Ergün Ayduran (GMX) erguen.ay at gmx.de
Thu Jul 2 01:33:40 EDT 2009


Hi,

i want to filter set a filter in a wfs request:
I want to get all polygons, where ("von_pegel" >= 70 or "bis_pegel" < 70) and datumzeit = 2009-07-09 12:00:00.
I tried it with the request:

http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/webgis/mapfile_wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=flood&Filter<Filter><And><Or><PropertyIsGreaterThanOrEqualTo><PropertyName>von_pegel</PropertyName><Literal>70</Literal></PropertyIsGreaterThanOrEqualTo><PropertyIsLessThan><PropertyName>bis_pegel</PropertyName><Literal>70</Literal></PropertyIsLessThan></Or><PropertyIsEqualTo><PropertyName>datumzeit</PropertyName><Literal>2009-07-09%2012:00:00</Literal></PropertyIsEqualTo></And></Filter>

and with this request (is the same request,without %20 in date)

http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/webgis/mapfile_wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=flood&Filter<Filter><And><Or><PropertyIsGreaterThanOrEqualTo><PropertyName>von_pegel</PropertyName><Literal>70</Literal></PropertyIsGreaterThanOrEqualTo><PropertyIsLessThan><PropertyName>bis_pegel</PropertyName><Literal>70</Literal></PropertyIsLessThan></Or><PropertyIsEqualTo><PropertyName>datumzeit</PropertyName><Literal>2009-07-09 12:00:00</Literal></PropertyIsEqualTo></And></Filter>

Both requests response me only all polygons.

Example: 
(1)        0 - 50
(2)        50 - 100
(3)        100 - 150
(4)        150 - 200

Setting the filter should response only (2), (3) and (4)
Plz, can anyone tell me, what is wrong in my filter.

EA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090702/50de6688/attachment.html


More information about the mapserver-users mailing list