Opened 16 years ago

Last modified 13 years ago

#2730 new defect

Filter encoding : matchCase with WMS requests using PropertyIsEqualTo or PropertyIsLike (with a tab file)

Reported by: elzouavo Owned by: assefa
Priority: normal Milestone: 6.2 release
Component: WMS Server Version: 5.2
Severity: blocker Keywords:
Cc: dmorissette

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.

The WMS request with PropertyIsEqualTo and mathCase="false" works fine :

http://localhost/cgi-bin/mapserv.exe?map=C:\mapfiles\casse_couche_locale.i2.map&&LAYERS=c_COMMUNE&SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Ec_COMMUNE%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CFilter%3E%3CPropertyIsEqualTo%20matchCase=%22false%22%3E%3CPropertyName%3ENOM_COM%3C%2FPropertyName%3E%3CLiteral%3Emillas%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CGraphicFill%3E%3CGraphic%3E%3CMark%3E%3CWellKnownName%3Ecross%3C%2FWellKnownName%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23A5F38D%3C%2FCssParameter%3E%3C%2FFill%3E%3C%2FMark%3E%3CSize%3E8.0%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FGraphicFill%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter%20name%3D%22stroke%22%3E%23A5F38D%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22stroke-width%22%3E2.0%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&ISBASELAYER=false&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A27582&BBOX=626217.0624999995,1746065.9749999996,627776.0875000004,1747105.3250000002&WIDTH=900&HEIGHT=600

But I need to use filter with PropertyIsLike. WMS requests with PropertyIsLike and matchCase="false" doesn't work :

http://localhost/cgi-bin/mapserv.exe?map=C:\mapfiles\casse_couche_locale.i2.map&&LAYERS=c_COMMUNE&SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Ec_COMMUNE%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CFilter%3E%3CPropertyIsLike%20wildCard%3D%22*%22%20singleChar%3D%22%23%22%20escapeChar%3D%22!%22%20escape%3D%22!%22%20matchCase%3D%22false%22%3E%3CPropertyName%3ENOM_COM%3C%2FPropertyName%3E%3CLiteral%3E*milla*%3C%2FLiteral%3E%3C%2FPropertyIsLike%3E%3C%2FFilter%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CGraphicFill%3E%3CGraphic%3E%3CMark%3E%3CWellKnownName%3Ecross%3C%2FWellKnownName%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23A5F38D%3C%2FCssParameter%3E%3C%2FFill%3E%3C%2FMark%3E%3CSize%3E8.0%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FGraphicFill%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter%20name%3D%22stroke%22%3E%23A5F38D%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22stroke-width%22%3E2.0%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&ISBASELAYER=false&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A27582&BBOX=626217.0624999995,1746065.9749999996,627776.0875000004,1747105.3250000002&WIDTH=900&HEIGHT=600

Change History (6)

comment:2 by dmorissette, 16 years ago

Cc: dmorissette added
Milestone: 5.4 release
Owner: changed from mapserverbugs to assefa

comment:3 by assefa, 14 years ago

Milestone: 5.6 release6.0 release

comment:4 by assefa, 13 years ago

Milestone: 6.0 release6.2 release

I am not sure if this happen with 6.0. If that is the case, could you please attach a test case data/map that I can use to test/reproduce/fix? Thx

comment:5 by elzouavo, 13 years ago

You can try files in the zip file joined in #2730. Thanks

in reply to:  5 comment:6 by elzouavo, 13 years ago

Replying to elzouavo:

You can try files in the zip file joined in #2730. Thanks

Oups ! Not in 2730 but in #2761 !! Sorry

Note: See TracTickets for help on using tickets.