SLD and WFS: filters

Frank Warmerdam warmerdam at POBOX.COM
Wed Apr 4 13:31:12 EDT 2007


Yewondwossen Assefa wrote:
> Bart,
> 
>  When using the filter encoding (in wms and wfs), if the filter is 
> "simple" enough, It will be translated into expressions set on the 
> layers filter parameter (see bug 1292 on discussions related to this 
> :http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1292).
> So in your case, you end up setting the filter with something like 
> "WHERE (KW_KWALITE> 3)"
> 
> The error you are seeing is produced I think at the OGR level when 
> validating the expression (so verifying things like numeric comparison 
> is done with only numeric fields).

Bart,

Assefa is bang on here.  Oddly someone raised the lack of less than and
greater than operators for strings in OGR SQL in another venue.   I have
created a ticket for this issue, and will attempt to correct it in time
for todays GDAL/OGR 1.4.1 beta release.

   http://trac.osgeo.org/gdal/ticket/1557

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the mapserver-dev mailing list