[mapserver-users] problem with Regular Expression
Travis Kirstine
traviskirstine at gmail.com
Mon Oct 17 06:49:52 PDT 2011
Marc-André
I have never used regex in MS but this should work:
EXPRESSION ('[res_co_reg]' ~* '^.*RES_CO_REG.*$')
I believe that regex are costly in term of performance
Regards
On 17 October 2011 09:26, Marc-André Trottier
<trottier.marcandre at gmail.com> wrote:
> hi!
> i'm using Mapserver 6.0 and got this error :
>
> msValidateParameter(): Regular expression error. Parameter pattern
> validation failed.
>
> with this CLASS :
> CLASS
> NAME "Région administrative"
> EXPRESSION ('[res_co_reg]' eq '%RES_CO_REG%')
> GROUP "adn"
> LABEL
> COLOR 139 35 35
> ANTIALIAS FALSE
> TYPE TRUETYPE
> FONT "verait"
> SIZE 12
> POSITION AUTO
> FORCE FALSE
> MINDISTANCE 10000
> PARTIALS FALSE
> BUFFER 3
> END
> STYLE
> OUTLINECOLOR 139 35 35
> WIDTH 5
> END
> END
>
> but everything works well
>
> i also tried and the error always appear :
>
> EXPRESSION ("[res_co_reg]" eq "%RES_CO_REG%")
> EXPRESSION ('[res_co_reg]' = '%RES_CO_REG%')
> EXPRESSION ([res_co_reg] eq %RES_CO_REG%)
> EXPRESSION ("[res_co_reg]" = "%RES_CO_REG%")
>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
More information about the MapServer-users
mailing list