[mapserver-users] transparent shapes?

jrom jga at scot.cnes.fr
Wed Nov 28 05:23:59 PST 2001


> Hi all.
> I want to know if there is a way to draw a layer with transparency in 
> mapserver.
> Something like an alpha channel or something.  Should I define it in the 
> .map file?
> 
> Thanks in advance,

There is no alpha channel support in mapserver but you can use
a symbol like a diagonal hash to fill your layer and simulates
transparency

For example:

 LAYER
   CLASS
     COLOR 60 138 238
     SYMBOL "diagonal_hash"
   END
   DATA "polygons"
   NAME "trans_polygons"
   STATUS ON
   TYPE POLYGON
 END

 SYMBOL
  NAME "diagonal_hash"
  TYPE VECTOR
  POINTS 
      0 0
      1 1
  END
 END


jrom



More information about the MapServer-users mailing list