Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

2 Answers

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>

or

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
add comment

I used RasterPaletteResolver transformer. It helps.

share|improve this answer
1  
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
add comment

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.

Your Answer

 
discard

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.