Can anybody guide me with this error message from the FME workbench when I try to read a geotiff file and write it as a ECW file

ERROR MESSAGE: ECW writer: Unsupported band interpretation 'REAL32'. Please convert the interpretation to one of the following valid types: UINT8, GRAY8, GREEN8, RED8, ALPHA8, BLUE8 A fatal error has occurred. Check the logfile above for details A fatal error has occurred. Check the logfile above for details

How do I move on, can anybody link to some documentation eventually

  • I would rescale to 8 bit as intermediate step – nickves Jul 19 '16 at 2:57

So, it appears that your TIF is in REAL32 which isn't supported by ECW. It's interesting that you're getting an error, because the writer documentation states that:

Any non-eight-bit source data will be rescaled to eight-bit.

However, you can force the data to be 8-bit by using a RasterInterpretationCoercer. I would set your output to RGB24 depending on your needs: enter image description here

Other transformers to look at:

  1. RasterBandInterpretationCoercer
  2. RasterPaletteInterpretationCoercer

But they look at individual bands and palettes rather than the entire raster as a whole.

  • 1
    Good answer. I filed a problem report with the developer and docs teams about that info. I thought it might be because you are using numeric as opposed to RGB data (ie the band count is different too) but writing RGB48 didn't work either, so I guess that's not the answer. Anyway, we'll see what they say. – Mark Ireland Aug 3 '16 at 22:03
  • 1
    Just got confirmation that the documentation is wrong and will be fixed. We also expanded the error message to suggest the transformers to use to solve the problem. Hope that's useful. – Mark Ireland Aug 5 '16 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.