[mapserver-users] How to set feature-level opacity?

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Mon Nov 29 16:04:22 EST 2010


Colors are always RGB for the moment, and unfortunately OPACITY isn't bindable at the moment. It would be a relatively easy
hack though (patches gladly accepted). Feel free to create a ticket and assign it to me.

Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lasma Sietinsone
Sent: Friday, November 26, 2010 6:24 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] How to set feature-level opacity?

Hi,

Is there a way to have feature-level opacity? I have large amount of
polygon data that has to be coloured RGB values straight from
attribute table. I also need to set custom transparency on these
polygons (alpha value).
I am trying to use  COLOR [rgba] or COLOR [rgb] and OPACITY
[alphavals] but, unfortunately, neither approach would work.
Example from my mapfile:

...
CLASS
	STYLE
	      COLOR [rgba]
              # or have use two parameters instead
              # COLOR [rgb]
              # OPACITY [alphavals]
	END
	STYLE
		OUTLINECOLOR 0 0 0
		WIDTH 1
	END
END
....

I understand that this has not been implemented, I am just
demonstrating my intentions.
Any workarounds or advice would be appreciated.
Thank you,

Lasma
_______________________________________________
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