[mapserver-users] Need help with Expression

thomas bonfort thomas.bonfort at gmail.com
Fri Sep 30 10:02:50 EDT 2011


You can use a regular expression

CLASSITEM RDNAME

CLASS
  EXPRESSION /^Main/
  ...
END

--
thomas

On Fri, Sep 30, 2011 at 15:51, Bistrais, Bob <Bob.Bistrais at maine.gov> wrote:
> I’m trying to create an Expression to select features in a Class, MapServer
> 6.0.1.  I want to do something such as a wildcard or a Like statement, to
> select records with certain item values.  Something similar to this:
>
>
>
> EXPRESSION (‘[RDNAME]’ = ‘Main%’ )
>
>
>
> Or perhaps
>
>
>
> EXPRESSION (‘[RDNAME]’ like ‘Main%’)
>
>
>
> -neither of these formats worked for me.  I checked the MS documentation
> under Expression, but could not find the solution.  Can anyone shed some
> light on this?
>
> _______________________________________________
> 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