We have a directory of JP2 imagery with 4 bands, the standard RGB plus NIR.
When I create an ImageMosaic layer from that directory and do a WMS GetMap on
that layer with TRANSPARENT=false and PNG format, I get a PNG image with an
alpha band. From the OGC's WMS 1.1.1 specification I would assume that I should
only get the RGB bands when I specify TRANSPARENT=false.
If I define a 3-band SLD that specifies the RGB channels (bands) I want, I will
get an RGB image without alpha channel when I specify TRANSPARENT=false. So one
would say that I should just use that SLD as the default for the layer.
However, that creates problems when I specify a second layer with just 3 bands
in an appropriate GetMap request. The GetMap request has a bounding box such
that the 4-band layer covers only the left half, and the 3-band layer appears
in the right half. This works fine when no SLD (i.e. just the default raster
SLD) is involved, and the resulting image has only 3 bands. However, when the
above 3-band SLD is active for the 4-band layer, the right half of the returned
image is transparent instead of showing the 3-band layer.
So I am wondering what I can do to get consistent 3-band output from GeoServer,
especially when I have a mix of 3-band and 4-band imagery?
Thanks, Felix
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users