SV: [mapserver-users] Classitems selection
Steve Lime
Steve.Lime at dnr.state.mn.us
Thu Aug 13 07:02:04 PDT 2009
In that case you could use a regex for the classes with multiple
matches. (E.g. EXPRESSION /cherry|mango|lime/) Performance
penalty is not as large as for logical expressions and this is probably
faster than maintaining list.
Steve
>>> On 8/13/2009 at 8:50 AM, in message
<2349CC72A0B01C4FAA4FFAE6C735E1DDE291F2 at enerasrv01.Enera.local>, "Lars
Westerlind" <lars.westerlind at enera.se> wrote:
> AFAIK currently I write
>
>
>
> CLASSITEM "flavor"
>
> ...
>
> EXPRESSION "cherry"
>
>
>
>
>
> Suggested extension would be to allow for
>
>
>
> CLASSITEM
>
> ...
>
> EXPRESSION "cherry","mango","lime"
>
>
>
> But really, syntax is not my concern. A could very well use
expressions, but
> the documentation says they are not good for performance. And my
first
> question is if I've missed something?
>
>
>
> ________________________________
>
> Från: Fawcett, David [mailto:David.Fawcett at state.mn.us]
> Skickat: 13 August 2009 15:39
> Till: Lars Westerlind; mapserver-users at lists.osgeo.org
> Ämne: RE: [mapserver-users] Classitems selection
>
>
>
> Do you mean something like ('[flavor]' IN ('cherry', 'mango',
'lime')?
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars
> Westerlind
> Sent: Thursday, August 13, 2009 2:39 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Classitems selection
>
> I use the CLASSITEM - EXPRESSION with string expression rather
much, which is
> also recommended for performance. But sometimes I have a few values
that
> could be shown in the same class. Wouldn't it be a nice idea to allow
for a
> commaseparated set/list of strings to match?
>
>
>
>
More information about the MapServer-users
mailing list