Skip to main content
Solved

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

  • October 26, 2018
  • 2 replies
  • 143 views

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?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

xiaomengatsafe
Safer
Forum|alt.badge.img+11
  • 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
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.