Skip to main content
Solved

ECW writer: This format does not support writing the RGB/RGBA bands in the raster with other extra bands


I have a problem with conversion of 4 bands GeoTiff into ECW. I'm quite new to this. For me seems that ECW can hold up to 65k bands, so I think this should be possible.

The bands are RED8 GREEN8 BLUE8 UINT8 - if I write only RGB it works, as well it works then I only choose UINT8 band.

How could I write all the bands to ECW file ? Any clues ?

I took a look at this reply: https://knowledge.safe.com/questions/66914/ecw-writer-this-format-does-not-support-writing-th.html

But unfortunately it didn't help.

Best answer by xiaomengatsafe

Hi @tomasz. I did a quick test with some mocked data here. (Full disclosure, I'm not super familiar with this process either). Here is what I observed:

 

  • If the source data is RED8 GREEN8 BLUE8 UINT8, I do get the same error, but
  • If I convert the interpretation to RGBA32, using the RasterInterpretationCoercer transformer, the output writes to ECW successfully.

It seems like the difference is the 4th band's interpretation type has to be Alpha8 (not UINT8), which RasterInterpretationCoercer was able to helped me convert.

Can you give this a try, and see if it helps?

View original
Did this help you find an answer to your question?

2 replies

xiaomengatsafe
Safer
Forum|alt.badge.img+3
  • Safer
  • Best Answer
  • October 26, 2018
Hi @tomasz. I did a quick test with some mocked data here. (Full disclosure, I'm not super familiar with this process either). Here is what I observed:

 

  • If the source data is RED8 GREEN8 BLUE8 UINT8, I do get the same error, but
  • If I convert the interpretation to RGBA32, using the RasterInterpretationCoercer transformer, the output writes to ECW successfully.

It seems like the difference is the 4th band's interpretation type has to be Alpha8 (not UINT8), which RasterInterpretationCoercer was able to helped me convert.

Can you give this a try, and see if it helps?


  • Author
  • October 27, 2018
xiaomengatsafe wrote:
Hi @tomasz. I did a quick test with some mocked data here. (Full disclosure, I'm not super familiar with this process either). Here is what I observed:

 

  • If the source data is RED8 GREEN8 BLUE8 UINT8, I do get the same error, but
  • If I convert the interpretation to RGBA32, using the RasterInterpretationCoercer transformer, the output writes to ECW successfully.

It seems like the difference is the 4th band's interpretation type has to be Alpha8 (not UINT8), which RasterInterpretationCoercer was able to helped me convert.

Can you give this a try, and see if it helps?

@XiaomengAtSafe thanks for this solution, actually tried a couple of different things, but didn't try this one, it seems working. However not sure if the output is as expected but that is to verify.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings