Jacolin Yves wrote:
Hi list,

I am trying to setup a SLD file for a layer. I create a SLD file:
<StyledLayerDescriptor version="1.0.0">
        <NamedLayer>
                <Name>geosignal</Name>
                <NamedStyle>
                        <Name>xxx</Name>
                </NamedStyle>
                <UserStyle>
                        <FeatureTypeStyle>
                                <Rule>
                                        <RasterSymbolizer>
                                                <Opacity>0.6</Opacity>
                                        </RasterSymbolizer>
                                </Rule>
                        </FeatureTypeStyle>
                </UserStyle>
        </NamedLayer>
</StyledLayerDescriptor>

Which the aims is to change the opacity.

My url is:
http://www2.xxxx.com/cgi-bin/mapserv_wms?
LAYERS=orthophoto,geosignal,sncf&
TRANSPARENT=true&
FORMAT=jpeg&SERVICE=WMS&VERSION=1.1.1&
REQUEST=GetMap&EXCEPTIONS=application-vnd.ogc.se_inimage&
STYLES=,,&SLD=http://www2.xxx.com/lpdi/sld/geosignal.xml&;
SRS=EPSG:27582&
BBOX=579452.7126630786,2420705.106583846,608239.3637849536,2441871.7618205184&
WIDTH=680&HEIGHT=500

My geosignal layer is not transparent. Do I need to do something to mapserver side (build, configuration)? I didn't change anything in my mapfile. Am I right?

Regards,

Y.

You are right that there should not be any changes needed in the map file. Make sure that you have built MapServer with OGR support (USE_OGR). The SLD seems to be valid from what I can see. From your settings it should have the same effect as setting the OPACITY value on the geosignal layer to 60. Does setting the opacity value manually in your layer and not using the sld gives you the expected result ?


--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------

Reply via email to