[mapserver-users] Changing map colors dynamically doesn't work

Michael Wessel michael_wessel at gmx.de
Sun Mar 2 23:46:15 PST 2008


Dear List, 

On Sunday 02 March 2008 17:32, Michael Wessel wrote:

> And here is the next problem - how would I change the class
> expression
>
>  CLASS
>       EXPRESSION (1)
>       STYLE
>         COLOR        255 255 1
>         OUTLINECOLOR 32 32 32
>       END
>     END
>
> "1" is for true, so all polygons are selected; I now want to change
> the expression to (0) (= false), in order to deselect all polygons.
>
> I tried:
>
> map.layer[lakes].class[0].expression[0]='(0)'
>
> and got:
>
> loadClass(): Unknown identifier. Parsing error near ((0)):(line 1)

OK, I now found the answer to this question in the list archives, e.g. 

http://lists.umn.edu/cgi-bin/wa?A2=ind0708&L=MAPSERVER-USERS&P=R34495

Regards, 

Michael 



More information about the MapServer-users mailing list