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

Pano Voudouris pvoudouris at gaiocorp.com
Sun Apr 11 15:36:08 EDT 2010


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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rafal Magda
Sent: 11 April 2010 16:33
To: mapserver-users at lists.osgeo.org
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
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list