[mapserver-users] Problem with WFS Filter

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


Sry i forgot to write: All data have the same "datumzeit" = 2009-07-09 12:00:00
  ----- Original Message ----- 
  From: Ergün Ayduran (GMX) 
  To: mapserver-users at lists.osgeo.org 
  Sent: Thursday, July 02, 2009 7:33 AM
  Subject: [mapserver-users] Problem with WFS Filter


  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


------------------------------------------------------------------------------


  _______________________________________________
  mapserver-users mailing list
  mapserver-users at lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090702/223e83db/attachment-0001.html


More information about the mapserver-users mailing list