[mapserver-users] opacity and outputformat
Marc-André Trottier
trottier.marcandre at gmail.com
Mon May 9 10:18:09 PDT 2011
hi!
how can i get a output with opacity on 2 or more layers.
with only 1 layer it's working fine but not with 2 or more.
How should be written OPACITY when using IMAGEMODE RGBA ? (ALPHA)
i tried something like OPACITY 22,22,22,22 but looks bad
in all my tests, all i got was my 2 layers with full opacity (100) ...
here is my mapfile :
MAP
EXTENT -8146324.306063 5632144.09953312 -8137075.425642 5638229.88815488
FONTSET "fonts"
IMAGECOLOR 255 255 255
IMAGETYPE AGGA
SIZE 732 482
STATUS ON
UNITS METERS
NAME "MS"
OUTPUTFORMAT
NAME 'AGGA'
DRIVER AGG/PNG
IMAGEMODE RGBA
TRANSPARENT TRUE
END
PROJECTION
"init=epsg:900913"
END
LEGEND
IMAGECOLOR 255 255 255
KEYSIZE 20 10
KEYSPACING 5 5
LABEL
ANGLE 0.000000
ANTIALIAS TRUE
FONT "arial"
MAXSIZE 256
MINSIZE 4
SIZE 10
TYPE TRUETYPE
BUFFER 0
COLOR 255 255 255
FORCE FALSE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 0 0
PARTIALS TRUE
END
OUTLINECOLOR 0 0 0
POSITION LR
POSTLABELCACHE TRUE
STATUS EMBED
TRANSPARENT FALSE
END
QUERYMAP
COLOR 255 255 0
SIZE -1 -1
STATUS OFF
STYLE HILITE
END
SCALEBAR
ALIGN CENTER
COLOR 0 0 0
IMAGECOLOR 255 255 255
INTERVALS 4
LABEL
SIZE MEDIUM
TYPE BITMAP
BUFFER 0
COLOR 0 0 0
FORCE FALSE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 0 0
PARTIALS TRUE
POSITION CR
END
OUTLINECOLOR 0 0 0
POSITION LL
SIZE 200 3
STATUS EMBED
STYLE 0
UNITS METERS
END
WEB
IMAGEPATH "path"
IMAGEURL ""
QUERYFORMAT text/html
LEGENDFORMAT text/html
BROWSEFORMAT text/html
END
LAYER
CONNECTION "PATATE3"
CONNECTIONTYPE WMS
DEBUG 5
METADATA
"wms_srs" "EPSG:900913"
"wms_name" "PATATE3"
"wms_format" "image/png"
"wms_server_version" "1.1.1"
END
NAME "Carte"
PROCESSING "CLOSE_CONNECTION=NORMAL"
PROJECTION
"init=epsg:900913"
END
STATUS ON
TRANSFORM FALSE
TYPE RASTER
UNITS METERS
END
LAYER
CONNECTION "PATATE2"
CONNECTIONTYPE WMS
DEBUG 5
METADATA
"wms_srs" "EPSG:900913"
"opacity" "100"
"wms_name" "PATATE2"
"wms_format" "image/png"
"wms_server_version" "1.1.1"
END
NAME "PATATE2"
PROCESSING "CLOSE_CONNECTION=NORMAL"
PROJECTION
"init=epsg:900913"
END
STATUS ON
TRANSFORM FALSE
TYPE RASTER
UNITS METERS
END
LAYER
CONNECTION "PATATE"
CONNECTIONTYPE WMS
DEBUG 5
METADATA
"wms_srs" "EPSG:900913"
"opacity" "40"
"wms_name" "PATATE"
"wms_format" "image/png"
"wms_server_version" "1.1.1"
END
NAME "PATATE"
PROJECTION
"init=epsg:900913"
END
STATUS ON
OPACITY 40
TYPE RASTER
UNITS METERS
END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110509/20096f66/attachment.htm>
More information about the MapServer-users
mailing list