[mapserver-users] Transparent (OPACITY) color(S)

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Mon Dec 2 09:21:35 PST 2013


I don't believe this has ever been possible. If I understand you, the rendering order is:


1.       Draw aerial photo

2.       Draw lake

3.       Draw islands (i.e. holes) in lake

Step 2 has already mucked with pixels that you're drawing (again) in step 3. You'd need to combine the lake and islands into multi-part polygons to get the affect you're after.

Steve

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul)
Sent: Monday, December 02, 2013 11:14 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Transparent (OPACITY) color(S)

All,

Last week I was trying to set a color to transparent in a mapfile, but it wasn't working the way I expected.

I have a polygon layer, on top of an Aerial Photo base, let's call it a lake, with a single poly in it.  I have another polygon layer with what we'll call Islands, I want to color fill the lake and apply the transparent color to the islands AFTER rendering to see through the filled lake poly to the underlying aerial layer.  I tried all sorts of combinations of TRANSPARENT, OPACITY, OUTPUTFOMAT, etc. in the MAP and /or the LAYER elements without success.  I recall this used to be possible with older versions of MapServer.  But now it seems that OUTPUTFORMAT has been brought into the equation for recent versions.

Hmm, maybe I'm trying to cheat things too much, or I need to read up on NEW Mapserver some more.    :c)

Anyone have an example of MAPFILE for accomplishing this.

Thanks

Bobb


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131202/65242526/attachment.html>


More information about the mapserver-users mailing list