Re: SV: [mapserver-users] Classitems selection

2009-08-13 Thread Christy Nieman

Hi,

When you say that you could very well use expressions, do you mean 
regular expressions? In my experience, unless you are working with a 
very large data set they're fine.


E.g.
CLASSITEM flavour
...
EXPRESSION /cherry|mango|lime/

Christy

Lars Westerlind 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.fawc...@state.mn.us]
*Skickat:* 13 August 2009 15:39
*Till:* Lars Westerlind; mapserver-users@lists.osgeo.org
*Ämne:* RE: [mapserver-users] Classitems selection

Do you mean something like ('[flavor]' IN ('cherry', 'mango', 'lime')?

-Original Message-
*From:* mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of
*Lars Westerlind
*Sent:* Thursday, August 13, 2009 2:39 AM
*To:* mapserver-users@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?



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: SV: [mapserver-users] Classitems selection

2009-08-13 Thread Steve Lime
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
2349cc72a0b01c4faa4ffae6c735e1dde29...@enerasrv01.enera.local, Lars
Westerlind lars.westerl...@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.fawc...@state.mn.us] 
 Skickat: 13 August 2009 15:39
 Till: Lars Westerlind; mapserver-users@lists.osgeo.org 
 Ämne: RE: [mapserver-users] Classitems selection
 
  
 
 Do you mean something like ('[flavor]' IN ('cherry', 'mango',
'lime')?  
 
   -Original Message-
   From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lars 
 Westerlind
   Sent: Thursday, August 13, 2009 2:39 AM
   To: mapserver-users@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? 
 

 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: SV: [mapserver-users] Classitems selection

2009-08-13 Thread Fawcett, David
Christy is right.  

With a reasonably small number of items, either the IN syntax or the regular 
expression will work.  

I use the IN syntax to classify 87 counties in an app and it runs fast.  A 
recent comparison done by Adrian Popa indicates that the regular expression 
syntax is faster.  

Here is the thread:  
http://lists.osgeo.org/pipermail/mapserver-users/2009-July/062071.html

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Christy Nieman
Sent: Thursday, August 13, 2009 9:01 AM
To: Lars Westerlind
Cc: mapserver-users@lists.osgeo.org
Subject: Re: SV: [mapserver-users] Classitems selection


Hi,

When you say that you could very well use expressions, do you mean 
regular expressions? In my experience, unless you are working with a 
very large data set they're fine.

E.g.
CLASSITEM flavour
...
EXPRESSION /cherry|mango|lime/

Christy

Lars Westerlind 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.fawc...@state.mn.us]
 *Skickat:* 13 August 2009 15:39
 *Till:* Lars Westerlind; mapserver-users@lists.osgeo.org
 *Ämne:* RE: [mapserver-users] Classitems selection

 Do you mean something like ('[flavor]' IN ('cherry', 'mango', 'lime')?

 -Original Message-
 *From:* mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of
 *Lars Westerlind
 *Sent:* Thursday, August 13, 2009 2:39 AM
 *To:* mapserver-users@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?

 --
 --

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org 
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
   
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org 
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users