[mapserver-users] What is valid format for attribute color in PostGIS ?

Rafał Magda crus1 at o2.pl
Sun Apr 11 06:32:41 PDT 2010


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



More information about the MapServer-users mailing list