[Mapserver-users] transparent layer example .map request

Charlton Purvis cpurvis at asg.sc.edu
Thu Apr 17 10:56:23 EDT 2003


Thanks, Frank, but I'm still stuck.

Would you say that something like this should work?

MAP
   ...
   TRANSPARENT ON
   ...
   LAYER
      NAME "elevation GIF"
      ...
   END
   LAYER
      NAME "rainfall"
      TRANSPARENCY 75
      ...
   END
   ...
END

It doesn't work w/ my setup.  The rainfall layer covers everything
underneath it.

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: Thursday, April 17, 2003 10:43 AM
To: Charlton Purvis
Subject: Re: [Mapserver-users] transparent layer example .map request

Charlton Purvis wrote:
> Hi, folks:
> 
> I've looked through the archives, and I'm confused whether or not
3.6.3
> is transparent-happy.  There are posts that include TRANPARENCY #.
> While others include TRANSPARENT ON.  And others w/ TRANSPARENT TRUE.
> And 3.6.developemnt sounds transparent ready, but what about the
> official 3.6.3 release?  I'm not ready for 3.7 (for some unknown
> reason).
> 
> I've got an annual rainfall polygon layer that I'd like to overlay on
my
> elevation GIF.  So the GIF should come shining through the rainfall
> layer.  This might not be what I want (hashing, etc.), but I'd like to
> experiment, anyway.
> 
> Would someone mind posting an example .map file while also including
> your MapServer version so I can make sure I'm talking apples to
apples?

Charlton,

There are two transparency issues, layer transparency which uses the
"TRANSPARENCY #" format to indicate the opacity (100=opaque) of a whole
layer.  The other item is whether the output file is enabled for
transparency
support and this is at the MAP level using the TRANSPARENT keyword.  It
takes
a boolean, of which various values are supported including TRUE/FALSE
and
ON/OFF.

Generally speaking transparency support is OK in 3.6.x as far as I know.

Best regards,

-- 
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent






More information about the mapserver-users mailing list