Hi When using the default raster sld I can easily get rid of the black areas by setting the output transparent color to black. When I additionaly want to enhance the contrast with the following sld, the black areas are still there:
<StyledLayerDescriptor version="1.0.0"> <NamedLayer> <Name>ACTUAL_LAYER_NAME_HERE</Name> <UserStyle> <FeatureTypeStyle> <Rule> <Name>rule1</Name> <RasterSymbolizer> <ChannelSelection> <RedChannel> <SourceChannelName>1</SourceChannelName> <ContrastEnhancement> <Normalize /> <GammaValue>1</GammaValue> </ContrastEnhancement> </RedChannel> <GreenChannel> <SourceChannelName>2</SourceChannelName> <ContrastEnhancement> <Normalize /> <GammaValue>1</GammaValue> </ContrastEnhancement> </GreenChannel> <BlueChannel> <SourceChannelName>3</SourceChannelName> <ContrastEnhancement> <Normalize /> <GammaValue>1</GammaValue> </ContrastEnhancement> </BlueChannel> </ChannelSelection> </RasterSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> The images are all RGB images. I tried it with adding an alpha channel but the black areas are still there. Is there a way to get rid of black areas with channel selection and contrast enhancement? Best regards Stefan Freundliche Grüsse Stefan Ziegler Leiter amtliche Vermessung Amt für Geoinformation Amtliche Vermessung Rötistrasse 4 4500 Solothurn Telefon +41 32 627 75 96 Telefax +41 32 627 75 98 stefan.zieg...@bd.so.ch http://www.so.ch ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users