[mapserver-users] WMS filter with PropertyIsLike/matchCase doesn't work
"SAEZ Laurent - CETE Méditerr./DI/ETER"
Laurent.Saez at developpement-durable.gouv.fr
Wed Aug 6 10:05:04 PDT 2008
Hi list,
I have to make WMS and WFS CaseInsensitive requests.
In this example I use a TAB file and I search a city with its name.
I have a city called milla. In the TAB file the data is : Milla
I have tried WMS request with filter/PropertyIsEqualTo/matchCase and it
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 matchCase with PropertyIsLike. I have tried but I've
nothing returned !
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
Is it normal ?
Regards
Laurent
More information about the MapServer-users
mailing list