Opened 20 years ago

Closed 19 years ago

#792 closed defect (fixed)

Can't get transparent layer when using WMS

Reported by: jdenisgiguere@… Owned by: mapserverbugs
Priority: high Milestone:
Component: WMS Server Version: 4.2
Severity: normal Keywords:
Cc:

Description

While transparency work well with when you are not using GetMap to obtain map,
there are some problems with transparent layer when you use WMS.

1. Transparency doesn't work when filling with transparent pixmap whatever you
use IMAGEMODE RGBA or PC256. (Both work without WMS)

2. Transparency doesn't work when filling with vector symbol when you use
IMAGEMODE RGBA. It works with PC256, but bug 397 cause problem when you have
many layers.

Testcase follow.

Attachments (1)

transparent-testcase.tar.bz2 (16.9 KB ) - added by jdenisgiguere@… 20 years ago.
testcase to see problems with transparent layer with WMS

Download all attachments as: .zip

Change History (6)

by jdenisgiguere@…, 20 years ago

testcase to see problems with transparent layer with WMS

comment:1 by assefa, 19 years ago

Jean-Denis,

 What is the fomrat of the attchment ? I tried zip, tar, tar.gz but could not 
read it ptoperly. Thanks.

comment:2 by jdenisgiguere@…, 19 years ago

Hum, I don't know why the file has this name...

Anyway, this is a tar.bz2 archive.

You can use

tar -jxvf attachment.cgi

and you will have a directory named testcase.

I didn't check if the problem was present with 4.4.0 b2

comment:3 by assefa, 19 years ago

Ok Thanks I did extract it.

comment:4 by assefa, 19 years ago

I have worked a bit to see wht the problem was (BTW thanks to Jean-denis for 
providing a compte test case for this) :
 
 First of all there is a diffrence between the GetMap and the cgi mode=map 
when it comes to the layer order : when you use the wms, the layers parameter 
(eg house,road,wetland) means that the layers are drawn it that order, but in 
the cgi case it only means that the layers specified in the parameter are set 
to ON but the order of drawing is the order of the layers in the map file.
 Saying that to be able to comprare the results in your examples, the wetland 
and the wet2 layers need to be placed at the end of the file (so thay they can 
be drawn last after house and road). Doing this change, the cgi and the wms 
should display the same results.

 As for the transparency (after moving the wetland/wet2 layers at the end, I 
set on these 2 layers TRANSPARENCY 25 in the map file. I could then see roads 
and houses underneath the wetland polygones (using the pixmap symbol and using 
the vector triangle symbol) for both RGBA and PC256. I guess this is wanted to 
acheive right ?

 I may have missed something, but from what I can see until now, I think there 
should not be any problems. Please let me know what you think.     

 

comment:5 by jdenisgiguere@…, 19 years ago

Resolution: fixed
Status: newclosed
Yes, everything work wells !


Maybye it was a duplicate of 926

Thanks !

Note: See TracTickets for help on using tickets.