[mapserver-users] transparent shapes?

jrom jga at scot.cnes.fr
Wed Nov 28 08:23:59 EST 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