What is the actual value in the field? TEXT "255 0 0" or just "255 0 0". I 
think only the second will work.
Pano

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Rafal Magda
Sent: 11 April 2010 16:33
To: [email protected]
Subject: [mapserver-users] What is valid format for attribute color in PostGIS ?

Hi,

In my mapfile, in style I want to use "COLOR [mycolor]". 'mycolor' is a column 
(next to geom) in my PostGIS table. What is valid format for attribute color in 
PostGIS?  I tried TEXT "255 0 0", but after rendering I always get "invisible" 
color (nothing is rendered, I see bottom grey layer) :/

CLASS
        NAME    "line3"
        STYLE
                SYMBOL "my_line"
                COLOR 125 125 125
                SIZE 8
                ANTIALIAS TRUE
        END
        STYLE
                SYMBOL "my_line"
                COLOR [mycolor]
                SIZE 6
                ANTIALIAS TRUE
        END
END


--
Best regards,
Rafal Magda
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to