[mapserver-users] Mapserver and WFS filter

semska semska at gmail.com
Fri May 7 02:14:44 EDT 2010


Hi

We have run into difficulties regarding wfs filter in Mapserver and use of
cyrillic characters. Problem is that Mapserver in most cases do not return
any hits when using a searchstring that contains cyrillic and other language
specific characters other than english. Also, the behavior of Mapserver and
wfs filter might not be consistence between different spatial data types
(shape, postgis, etc).

<Filter><PropertyIsLike wildcard='*' singleChar='.' escape='!'
matchCase='false'><PropertyName>fieldname</PropertyName><Literal>searchstring</Literal></PropertyIsLike></Filter>

Example using postgis and filtertype “propertyIsLike”:
•	Matchcase=false works well with characters [a-zA-Z0-9]. Any other
characters fails 
•	Matchcase=true works well with all characters

Using postgis and filtertype “propertyIsEqualTo”:
•	works well with all characters

Using shapefiles and filtertype “propertyIsEqualTo”:
•	works well with characters [a-zA-Z]. 
•	searchstrings that contains a combination of numbers and mathematical
symbols seems not to work at all. 
Eg: searchstring=”512/4” gives hits on “512/4”, “256/2”, “128/1” and “128”.

We are using both Mapserver (MSW4) and Postgre/PostGIS on Windows platform.

Any ideas?

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-and-WFS-filter-tp5017992p5017992.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list