Opened 16 years ago
Closed 13 years ago
#2731 closed defect (duplicate)
Filter encoding : matchCase with WFS requests using PropertyIsEqualTo or PropertyIsLike (with a tab file)
Reported by: | elzouavo | Owned by: | assefa |
---|---|---|---|
Priority: | normal | Milestone: | 6.0 release |
Component: | WFS Server | Version: | 5.2 |
Severity: | major | Keywords: | |
Cc: |
Description
I have a mapfile referencing a tab file (representing some french cities). I try to select a city called "milla". In the tab file the data is : "Milla". I use mapserver 5.2 from ms4w. WFS requests with filter using PropertyIsEqualTo doesn't look matchCase settings. It works always like if matchCase was false.
Example : This request matches Millas when searching millas. http://localhost/cgi-bin/mapserv.exe?map=C:\mapfiles\casse_couche_locale.i2.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=c_COMMUNE&FILTER=(%3CFilter%3E%3CAnd%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3ENOM_COM%3C/PropertyName%3E%3CLiteral%3Emillas%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3CBBOX%3E%3CPropertyName%3EmsGeometry%3C/PropertyName%3E%3CBox+srsName=%22EPSG:27582%22%3E%3Ccoordinates%3E549532,1703258+669196,1768513%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/And%3E%3C/Filter%3E)
I have also tried WFS request with PropertyIsLike and matchCase="false" and it works very good.
In fact I can say (about filter encoding with matchCase option in WFS and WMS requests on tab file) :
- WFS requests :
- with filter PropertyIsEqualTo : Doesn't take into account matchCase (it works like matchCase was set to false by default) : requests are non case sensitive,
- with filter PropertyIsLike : OK.
- WMS requests : (cf. http://trac.osgeo.org/mapserver/ticket/2730)
- with filter PropertyIsEqualTo : OK,
- with filter PropertyIsLike : Doesn't take into account matchCase (it works like matchCase was set to true by default) : requests are case sensitive.
Regards
Change History (5)
comment:1 by , 16 years ago
Milestone: | → 5.4 release |
---|---|
Owner: | changed from | to
comment:2 by , 16 years ago
comment:3 by , 16 years ago
There is also a problem of performance with WFS requests using PropertyIsLike. cf. http://trac.osgeo.org/mapserver/ticket/1292#comment:10
comment:4 by , 14 years ago
Milestone: | 5.6 release → 6.0 release |
---|
I have test with a PostGIS database. The behaviour of MapServer is different.