WMS-Transparency (?)

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Mon Jan 8 08:40:09 EST 2007


You should be able to do this by using an SLD. Try something like (not
verified!):

"wms_sld_body" "<StyledLayerDescriptor version='1.0.0'
xmlns='http://www.opengis.net/sld'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://www.opengis.net/sld
http://schemas.opengeospatial.net/sld/1.0.0/StyledLayerDescriptor.xsd'><NamedLayer><Name>YOURLAYERNAME</Name><UserStyle><FeatureTypeStyle><Rule><RasterSymbolizer><Opacity>0.5</Opacity></Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>"

Change YOURLAYERNAME into the name of your layer (wms_name).

See also:
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00538.html

Hope this helps.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Kai Behncke <kbehncke at IGF.UNI-OSNABRUECK.DE>
Naar: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU>
Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS-Transparency (?)
Datum: 08/01/07 11:23

> On Mon, 8 Jan 2007 14:17:37 +0100, Michael Schulz wrote
> &gt; Hi Kai,
> &gt; 
> &gt; did you try it with &quot;OFFSITE 255 255 255&quot; for the layer
definition
> &gt; that cascades your wms?
> &gt; I am not sure what mapservers behaviour is, when cascading a
> &gt; transparent wms - if that transparency is (or can be) automatically
> &gt; used.
> &gt; 
> &gt; Cheers, Michael
> &gt; 
> Hello Michael,
> thank you for that information.
> I already checked out OFFSITE [r] [g] [b] and it made 
> the layer on the top transparent (but it is a 100% transparency).
> 
> I would like to get it in a way that it`s just 50% transparent (so that
one
> can see the topic layer und underneath the streets, river, etc. of the
> bottom-layer).
> But I guess that this is not possible with wms-layer?
> 
> Regards, Kai
> --
> Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke
> 
> Institut für Geoinformatik und Fernerkundung (IGF)
> Universität Osnabrück
> Kolpingstr. 7
> 49074 Osnabrück
> 
> Raum: 01/308
> Tel.: +49 541 969-4450
> E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de 
> Web:  http://www.igf.uni-osnabrueck.de
> 
> 



More information about the mapserver-users mailing list