Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to convert raster from one format to another (geotiff-->jpeg2000). First I tried with very simple workspace, having input geotiff and direct to output jpeg2000, but I got error message: JPEG2000 writer: This format cannot support palettes. Consider removing or resolving palettes that are attached to the raster

What should I do?

share|improve this question

How about using GDAL? It is available via FWTools (easier install) on Windows, via apt-get on Ubuntu, and via a binary for OSX.

Once you have GDAL just go ahead and use:

gdal_translate -of JP2OpenJPEG <input> <output>


gdal_translate -of JPEG2000 <input> <output>

The above command uses the built in JP2 format conversion. ECWJP2 or Kakadu might give you better results but they require a license.

share|improve this answer
Why "to do the same task" ECWJP2 or Kakadu are better? There are some GDAL bug or weakness? – Peter Krauss Apr 22 '13 at 17:53

I used RasterPaletteResolver transformer. It helps.

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Yeah, the problem is that the output format just doesn't support the palettes you have attached to the source. If you don't want the palettes then use the RasterPaletteRemover transformer. Otherwise the RasterPaletteResolver will use the palette to apply the correct color values to the output. – Mark Ireland Jun 14 '12 at 17:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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