Hi,
We need to set to transparent area of no data in a 10 bands 16bits Geotif. But,
we have an issue that we seem to be unable to resolve with GeoServer and any
SLD configuration.
Requirements:
- Select 3 bands among 10 available in the Geotif. Note necessarily the
first three ones.
- Set to transparent area of no data
Options:
- ChanelSelection. This works well to select the bands. However, when
setting "transparent=true" on the WMS call, the no data area is not set
transparent. Please see the SLD used below.
- ColorRamp. This would work well but obviously only for one band.
Question:
- Has anyone ever managed to handle 16 bits GeoTiff with more than 3
bands in GeoServer and in the same way handled transparency?
SLD:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
<NamedLayer>
<Name>S2_True_Colour</Name>
<UserStyle>
<Title>S2_True_Colour</Title>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
<ChannelSelection>
<RedChannel>
<SourceChannelName>3</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption
name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">0</VendorOption>
<VendorOption name="maxValue">250</VendorOption>
</Normalize>
</ContrastEnhancement>
</RedChannel>
<GreenChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption
name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">0</VendorOption>
<VendorOption name="maxValue">250</VendorOption>
</Normalize>
</ContrastEnhancement>
</GreenChannel>
<BlueChannel>
<SourceChannelName>1</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption
name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">0</VendorOption>
<VendorOption name="maxValue">250</VendorOption>
</Normalize>
</ContrastEnhancement>
</BlueChannel>
</ChannelSelection>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
SCISYS UK Limited. Registered in England and Wales No. 4373530.
Registered Office: Methuen Park, Chippenham, Wiltshire SN14 0GB, UK.
Before printing, please think about the environment.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users