Transparent Pixmap Symbol

Steve Lime Steve.Lime at DNR.STATE.MN.US
Fri Aug 24 15:35:19 PDT 2007


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
 



More information about the MapServer-users mailing list