[mapserver-users] EXPRESSION error

woodbri at swoodbridge.com woodbri at swoodbridge.com
Fri Sep 13 13:02:05 PDT 2002


Ivan,

1) logic error!   ([PROG]=4 AND [PROG]=5) is always FALSE
2) try ([PROG]=4 OR [PROG]=5) which is different from 
         (PROG=4 or PROG=5)

Hope this helps :)
  -Steve

On 13 Sep 2002 at 20:59, Ivan Paoluzzi wrote:

> 
> 
> Hi,
> I have a problem with EXPRESSION parameter.
> If I have 2 parameters it doesn't work but if I have a only parameter
> it work very well.
> 
> This is my class:
> 
> CLASS
>     EXPRESSION ([PROG]=4 AND [PROG]=5)
>     SYMBOL ../etc/parcheggio.gif
>     COLOR 0 0 0       #dummy color
>     LABEL
>       COLOR 255 0 0
>       FONT arial-bold
>       TYPE TRUETYPE
>       SIZE 10
>       ANTIALIAS TRUE
>       POSITION LC
>       ANGLE AUTO
>       MINFEATURESIZE 40
>       MINDISTANCE 100
>       BUFFER 3
>     END  #LABEL
> END #CLASS
> 
> 
> "PROG" is an attribute in my dbf file.
> I have a different label if PROG=4 or PROG=5.
> There is a syntax error? If yes where because I don't see it.
> 
> Thanks
> Ivan
> 
> 
> _________________________________________________________________ MSN
> Hotmail è il provider email più grande al mondo
 cosa aspetti a farti
> un account? http://www.hotmail.it
> 
> 





More information about the MapServer-users mailing list