Hi, Albrecht Weiser wrote: > No, i don't think that the problem is serverside, Andreas. Because: > If i take the links from firebug i get this: > First call is the topo map: > http://localhost/deegreewms/ogcwebservice?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=dtk50_v_f&SRS=EPSG:31467&BBOX=3426778,5787532,3443725,5801045&WIDTH=600&HEIGHT=400&FORMAT=image/jpeg&STYLES=default&TRANSPARENT=TRUE&UNIQUEID= > Next call is the polygon: > http://localhost/deegreewms/ogcwebservice?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=gefahrengebiet&SRS=EPSG:31467&BBOX=3426778,5787532,3443725,5801045&WIDTH=600&HEIGHT=400&FORMAT=image/gif&STYLES=gefahrengebiet&TRANSPARENT=TRUE&UNIQUEID= > The critical thing here is the format definition. Each request for > itself works correct. If you take a look at the format: the topo map > is jpeg and the polygon is gif. Now try the merged request: > http://localhost/deegreewms/ogcwebservice?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=dtk50_v_f,gefahrengebiet&SRS=EPSG:31467&BBOX=3432902,5792857,3434953,5794457&WIDTH=600&HEIGHT=400&FORMAT=image/jpeg&STYLES=default,gefahrengebiet&TRANSPARENT=TRUE&UNIQUEID= > As you can see, the wms serves the opaque layer as wanted. Here we > have only a jpeg as format definition. But if i turn the definition in > the wmc also to jpeg for both layers, the uplying polygon layer isn't > opaque anymore and the underlying topo layer can't be seen. >
One solution would be to just add one layer to your WMC, with <Name>dtk50_v_f,gefahrengebiet</Name> If you need to turn those layers on/off separately, you have to keep in mind that opacity for overlayed images is something different than for a composite image. In your SLD, you have to set Opacity to 1, and in the WMC, start the layer definition e.g. with <Layer queryable="1" hidden="0" opacity="0.5"> for a 0.5 opacity. Also, be sure to use image/gif as format for the overlay layer. This should resolve your issue. Regards, Andreas. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Mapbuilder-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
