Displaying Alpha-Channel of GeoTIFF in Raster Layer

3524
3
03-16-2015 05:40 AM
MathiasAnneken
New Contributor

Hi,

I'm using the Java API and I want to display a geoTIFF which I generate with an alpha-channel. I load the geoTIFF file as a RasterSource, reproject it and display the result as an RasterLayer. Thus far everything is fine, except of the fact, that the alpha channel is ignored. Is there some paramter I have to activate or something?

Thanks in advance!

0 Kudos
3 Replies
SachinKanaujia
Occasional Contributor III

Can you provide your sample code snippet of what your are trying to do?

0 Kudos
AbhishekRathi1
Occasional Contributor

Dear Mathias,

Alpha channel has mainly to do with transparency.

one bit files, and some other unusual formulations of GeoTIFF file, such as YCbCr color model files, are automatically translated into RGBA (red, green, blue, alpha) form, and treated as four eight bit bands.

0 Kudos
AbhishekRathi1
Occasional Contributor

And when you are re projecting it the format and the compression you are selecting may not be supporting the alpha band so can you kindly check this also.

0 Kudos