hi! <br>how can i get a output with opacity on 2 or more layers.<br>with only 1 layer it's working fine but not with 2 or more.<br><br>How should be written OPACITY when using IMAGEMODE RGBA ? (ALPHA) <br>i tried something like OPACITY 22,22,22,22 but looks bad <br>
<br>in all my tests, all i got was my 2 layers with full opacity (100) ...<br><br>here is my mapfile : <br><br> MAP<br> EXTENT -8146324.306063 5632144.09953312 -8137075.425642 5638229.88815488<br> FONTSET "fonts"<br>
IMAGECOLOR 255 255 255<br> IMAGETYPE AGGA<br> SIZE 732 482<br> STATUS ON<br> UNITS METERS<br> NAME "MS"<br><br> OUTPUTFORMAT<br> NAME 'AGGA'<br> DRIVER AGG/PNG<br> IMAGEMODE RGBA<br> TRANSPARENT TRUE<br>
END<br><br> PROJECTION<br> "init=epsg:900913"<br> END<br> LEGEND<br> IMAGECOLOR 255 255 255<br> KEYSIZE 20 10<br> KEYSPACING 5 5<br> LABEL<br> ANGLE 0.000000<br> ANTIALIAS TRUE<br> FONT "arial"<br>
MAXSIZE 256<br> MINSIZE 4<br> SIZE 10<br> TYPE TRUETYPE<br> BUFFER 0<br> COLOR 255 255 255<br> FORCE FALSE<br> MINDISTANCE -1<br> MINFEATURESIZE -1<br> OFFSET 0 0<br> PARTIALS TRUE<br>
END<br> OUTLINECOLOR 0 0 0<br> POSITION LR<br> POSTLABELCACHE TRUE<br> STATUS EMBED<br> TRANSPARENT FALSE<br> END<br><br> QUERYMAP<br> COLOR 255 255 0<br> SIZE -1 -1<br> STATUS OFF<br> STYLE HILITE<br>
END<br><br> SCALEBAR<br> ALIGN CENTER<br> COLOR 0 0 0<br> IMAGECOLOR 255 255 255<br> INTERVALS 4<br> LABEL<br> SIZE MEDIUM<br> TYPE BITMAP<br> BUFFER 0<br> COLOR 0 0 0<br> FORCE FALSE<br>
MINDISTANCE -1<br> MINFEATURESIZE -1<br> OFFSET 0 0<br> PARTIALS TRUE<br> POSITION CR<br> END<br> OUTLINECOLOR 0 0 0<br> POSITION LL<br> SIZE 200 3<br> STATUS EMBED<br> STYLE 0<br>
UNITS METERS<br> END<br><br> WEB<br> IMAGEPATH "path"<br> IMAGEURL ""<br> QUERYFORMAT text/html<br> LEGENDFORMAT text/html<br> BROWSEFORMAT text/html<br> END<br><br> LAYER<br> CONNECTION "PATATE3"<br>
CONNECTIONTYPE WMS<br> DEBUG 5<br> METADATA<br> "wms_srs" "EPSG:900913"<br> "wms_name" "PATATE3"<br> "wms_format" "image/png"<br>
"wms_server_version" "1.1.1"<br> END<br> NAME "Carte"<br> PROCESSING "CLOSE_CONNECTION=NORMAL"<br> PROJECTION<br> "init=epsg:900913"<br> END<br>
STATUS ON<br> TRANSFORM FALSE<br> TYPE RASTER<br> UNITS METERS<br> END<br><br> LAYER<br> CONNECTION "PATATE2"<br> CONNECTIONTYPE WMS<br> DEBUG 5<br> METADATA<br> "wms_srs" "EPSG:900913"<br>
"opacity" "100"<br> "wms_name" "PATATE2"<br> "wms_format" "image/png"<br> "wms_server_version" "1.1.1"<br> END<br>
NAME "PATATE2"<br> PROCESSING "CLOSE_CONNECTION=NORMAL"<br> PROJECTION<br> "init=epsg:900913"<br> END<br> STATUS ON<br> TRANSFORM FALSE<br> TYPE RASTER<br> UNITS METERS<br>
END<br><br> LAYER<br> CONNECTION "PATATE"<br> CONNECTIONTYPE WMS<br> DEBUG 5<br> METADATA<br> "wms_srs" "EPSG:900913"<br> "opacity" "40"<br>
"wms_name" "PATATE"<br> "wms_format" "image/png"<br> "wms_server_version" "1.1.1"<br> END<br> NAME "PATATE"<br> PROJECTION<br>
"init=epsg:900913"<br> END<br> STATUS ON<br> OPACITY 40<br> TYPE RASTER<br> UNITS METERS<br> END<br><br>END<br><br>