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: [email protected] 
  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
  [email protected]
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to