[mapserver-users] RE Mapserver 7 expression
Stephen Woodbridge
woodbri at swoodbridge.com
Tue Feb 16 12:16:03 PST 2016
Use EXPRESION ("column" ~* "^(pluie|bruine)$")
instead
~ case sensitive
~* case insensitive
^ start of string
$ end of string
So this matches exactly: "pluie" or "bruine" but not "pluie ..."
-Steve W
On 2/16/2016 3:01 PM, Steve.Toutant at inspq.qc.ca wrote:
> And this EXPRESSION {pluie,bruine}
> will be true for this string attribute "pluie verglaçante"
>
> It seems that there is a problem when there is a space in the string
> attribute
>
>
>
>
> *Steve.Toutant at inspq.qc.ca@lists.osgeo.org*
> Envoyé par : "mapserver-users" <mapserver-users-bounces at lists.osgeo.org>
>
> 2016-02-16 14:57
>
>
> A
> mapserver-users at lists.osgeo.org
> cc
>
> Objet
> [mapserver-users] Mapserver 7 expression
>
>
>
>
>
>
>
>
>
>
> Following this documentation
> _http://mapserver.org/fr/mapfile/expressions.html#list-expressions_
> I created the class expression
> EXPRESSION {pluie,bruine verglacante }
>
> My problem is that this expression return true when the string attribute
> is "pluie verglacante"
>
> I would expect only "pluie" and "bruine verglacante" to be catched by
> this expression...
> How does list expressions work?
> thanks
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
More information about the MapServer-users
mailing list