Transparent Pixmap Symbol

thomas bonfort thomas.bonfort at GMAIL.COM
Sat Aug 25 06:01:06 EDT 2007


I've checked with what withe the svn version and transparency is working
with gd and agg for pixmap (with a png image, haven't tried gif) and
truetype polygons fills.
the layer definition is simply
...
OPACITY 50
....
    CLASS
     NAME "States/Provinces1"
     STYLE
        SYMBOL 'truetype-symbol'  #or SYMBOL 'pixmap-symbol'
       COLOR 0 0 0
     END
...

for png pixmaps, no need for the TRANSPARENT keyword

thomas

On 8/25/07, Randy How <rhow at i3.com> wrote:
>
> Thanks for the response Steve,
>
> I've tried all sorts of variations for PNG and GIF, and it hasn't been
> successful.
>
> Any other options for "logo water-marking" maps from MapServer?  I was
> excited about this approach, but I can't get a transparency for the fill.
>
> Thanks again,
> Randy
>
> -----Original Message-----
> From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us ]
> Sent: Friday, August 24, 2007 4:35 PM
> To: rhow at I3.COM; MAPSERVER-USERS at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-USERS] Transparent Pixmap Symbol
>
> Randy: I'm thinking we have a documentation issue here. I'm not sure that
> the TRANSPARENT option is even supported anymore. Typically MapServer
> respects the transparency of the image itself, so you need to create a
> transparent GIF for that to work. Give that a shot and I'll check the
> source
> (and update the docs) to make sure.
>
> Steve
>
>
> >>> Randy How <rhow at I3.COM> 08/23/07 9:09 PM >>>
> I'm attempting to set the background transparency for a symbol that I've
> created, but with no success.
>
> My symbol definition
>
>   SYMBOL
>     NAME "logo"
>     TYPE PIXMAP
>     IMAGE "h2o_logos/logo.GIF"
>     TRANSPARENT 0
>   END
>
> According to the reference setting a color index in the GIF sets the
> transparency (i.e. TRANSPARENT 0).  Color index is 0 is black, and the
> output map layer symbol is not transparent!
>
> http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pa
> ges
>
> I've looked over this page and it only discusses PNG files.  I can't get
> any
> of my PNG file variations to work either.
> http://mapserver.gis.umn.edu/docs/howto/cartosymbols
>
> Any help would be greatly appreciated,
> Randy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070825/a51b28f4/attachment.html


More information about the mapserver-users mailing list