[mapserver-users] TRANSPARENCY PROBLEM
Pietro Giannini
pgiannini at bytewise.it
Mon Nov 17 08:57:20 PST 2008
Hi john,
simply omit the whole STYLE in the class, this make the layer transparent.
Or, if this seems dirty, set COLOR -1 -1 -1 and OUTLINECOLOR -1 -1 -1.
In fact the TRANSPARENCY 1 render a very faded layer, while TRANSPARENCY 0
is like TRANSPARENCY 100...
(TRANSPARENCY is deprecated in ms5, use OPACITY)
let me know, ciao
.....................................pg
--
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E
On Lun, Novembre 17, 2008 17:00, ntiamoah bernard wrote:
> Hi guys,
> I need suggestions for the following problem:
>
> I want to put transparency on polygon layer so that aerial photo could be
> seen below it. I have tried TRANSPARECY and OPACITY but i only get faded
> not transparent layer. My imagetype is PNG. Here is the mapfile
>
> MAP
> NAME 'School_boundary'
> SIZE 800 650
> STATUS ON
> EXTENT 347683.125124 1652890.274125 458837.845673 1759026.124282
> UNITS feet
> FONTSET '../fonts/fonts.list'
> SYMBOLSET '../symbols/symbol.sym'
> OUTPUTFORMAT
> NAME 'png'
> DRIVER GD/PNG
> IMAGEMODE RGBA
> EXTENSION "png"
> FORMATOPTION "FULL_RESOLUTION=TRUE"
> FORMATOPTION "INTERLACE=OFF"
> TRANSPARENT ON
> END #end outputformat
> #IMAGETYPE PNG
> QUERYMAP
> STATUS ON
> STYLE SELECTED
> END
> WEB
> IMAGEURL "/ms4w/tmp/ms_tmp/"
> IMAGEPATH "/ms4w/tmp/ms_tmp/"
> END
> LEGEND
> STATUS ON
> END
>
> LAYER
> NAME 'School_district'
> TYPE POLYGON
> DATA
> '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp'
> METADATA
> 'wms_title' 'school_boundary'
> END
> STATUS DEFAULT
> TRANSPARENCY 20
> #MAXSCALE 2000000
> LABELITEM 'NAME'
> CLASS
> NAME 'esn_boundary'
> STYLE
> SYMBOL 0
> SIZE 2
> OUTLINECOLOR 0 255 170
> COLOR 224 255 255
> END
> LABEL
> TYPE TRUETYPE
> FONT arial
> SIZE 8
> COLOR 233 122 100
> ANGLE 0
> POSITION CC
> MINDISTANCE 250
> BUFFER 1
> WRAP " "
> END
> END
> END
> END
>
> Thanks
> John
> Indiana
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list