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

Rafał Magda crus1 at o2.pl
Sun Apr 11 09:32:41 EDT 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