Hi List,
Thanks, that works.
But *this doesn't* and I need something like in the Class definitions below.
What should I do in this condition?
Is it about this; http://trac.osgeo.org/mapserver/ticket/2817
Using ms4w 5.4.0-rc2.
CLASSITEM "name"
CLASS
EXPRESSION ([id] = 5)
MAXSCALEDENOM 4000
MINSCALEDENOM 1000
NAME "1"
STYLE
COLOR [color2]
END
STYLE
OUTLINECOLOR 20 20 20
WIDTH 3
END
END
CLASS
EXPRESSION /xyz/
NAME "2"
STYLE
OUTLINECOLOR 0 0 0
WIDTH 20
END
END
*OR*
#CLASSITEM 'name' # Without CLASSITEM definition
CLASS
EXPRESSION ('[name]' eq /xyz/ AND [id] = 5)
NAME "GID_S"
STYLE
OUTLINECOLOR 0 0 0
WIDTH 20
END
END
On Tue, Oct 5, 2010 at 8:08 PM, Lime, Steve D (DNR)
<[email protected]>wrote:
> You can use regular expressions instead. E.g.
>
> Classitem 'name'
> Class
> Expression /xyz/
> End
>
> Steve
>
> ________________________________________
> From: [email protected] [
> [email protected]] On Behalf Of Ibrahim Saricicek [
> [email protected]]
> Sent: Tuesday, October 05, 2010 8:08 AM
> To: [email protected]
> Subject: [mapserver-users] Expressions
>
> Hi List;
>
> instead of an sql ,in the connection string including 'LIKE';
> (select id, name,the_geom from public.mytable where name like '%xyz%')
> I would like to use an expression.
> But documents say "The following logical operators are supported:
> =,>,<,<=,>=,=,or,and,lt,gt,ge,le,eq,ne"
>
> How can I use something like this?
> CLASS
> EXPRESSION ([name] like '%xyz%')
>
> Thanks in Advance...
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Expressions-tp5603053p5603053.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users