|
Issue Type:
|
Bug
|
Affects Versions:
|
2.1.1
|
Assignee:
|
Andrea Aime
|
Attachments:
|
4band0.tif, 4band1.tif
|
Components:
|
WMS
|
Created:
|
11/Sep/12 4:21 PM
|
Description:
|
Steps:
- Create a ImageMosaic store and layer with the attached 4-band images.
- View the layer in the Layer Preview.
- In the layer preview URL, replace ‘format=application/openlayers’ with ‘format=image/png’. You can also add ‘&TRANSPARENT=false’ to be sure.
- Refresh the URL and save the image, then run gdalinfo on it. It will report 4 bands. I don’t think it should, but I wrote GEOS-5303 for that.
- Add the ‘3band’ SLD below to GeoServer and change the GetMap request to include ‘&STYLES=3band’.
- Refresh the URL and save the image, then run gdalinfo on it. It will report 3 bands, i.e. the SLD works.
- Edit the layer to set BackgroundValues=255,61,210 and OutputTransparentColor=FF3DD2.
- Refresh the URL and save the image, then run gdalinfo on it. It will report 4 bands.
I don’t think OutputTransparentColor should add an alpha channel unless I specify ‘&TRANSPARENT=true’ in the request.
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
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">
<NamedLayer>
<Name>3band</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<ChannelSelection>
<RedChannel>
<SourceChannelName>1</SourceChannelName>
</RedChannel>
<GreenChannel>
<SourceChannelName>2</SourceChannelName>
</GreenChannel>
<BlueChannel>
<SourceChannelName>3</SourceChannelName>
</BlueChannel>
</ChannelSelection>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
|
Project:
|
GeoServer
|
Priority:
|
Major
|
Reporter:
|
Felix LJ Mayer
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa).
For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)