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

Michael Wessel michael_wessel at gmx.de
Mon Mar 3 02:46:15 EST 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