Skip to main content
Question

Output Raster jpeg2000 with alpha band from Ascii Grid

  • November 13, 2024
  • 2 replies
  • 73 views

sgsolingen
Contributor
Forum|alt.badge.img+1

We have merged Ascii grid and then classified the Raster using “RasterExpressionEvaluator” the Interpretation is set to UINT8

 


The color values have been assigned defining the interpretation of the palette as RGB24 using an AttributeCreator and then adding the color values to the RasterPaletteAdder.

 

 

 

Export in Geotif format is possible. The Tif is transparent between the classified raster cells via the Nodata value.

For performance reasons, we want to use a jpeg2000 and control the transparency via an alpha band as the jpeg2000 format does not support nodata values.

How can we export the classified raster image in jpeg2000 with an alpha band?

Thank you very much for your help in advance.

2 replies

donalmateer
Safer
Forum|alt.badge.img+10
  • Safer
  • November 15, 2024

Hi ​@sgsolingen,

Thank you for the post and reaching out!

Here are some quick articles/documents that may assist you in finding an answer!
Two transformers that come to mind when working with alpha bands would be - RasterBandNodataSetter & RasterBandAdder.

Let me know if you have any more issues and I’ll be happy to help.
Donal.


sgsolingen
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • November 21, 2024

Thank you very much that was helpful. The transformer worked and I was able to add the alpha band.