[FWTools] Converting large file to JP2

Mateusz Loskot mateusz at loskot.net
Sat Apr 28 12:07:17 EDT 2007


Wim Chalmet wrote:
> Hi,
> 
> I have a large file (140GB), single band 8 bit in PCIDSK format that
> I would like to translate into a geo-JP2. This is the command that I
> use:
> 
> gdal_translate -of "JP2KAK" -a_srs "+proj=tmerc +datum=NAD83
> +x_0=500000 +lon_0=-105 +lat_0=0 +k=0.9996" -co QUALITY=100  -co
> BLOCKXSIZE=200000000 F:\largeFile.pix G:\largeFile.jp2
> 
> I had to play around with the BLOCKXSIZE, because gdal_translate
> would throw the following error early in the conversion process:
> 
> ********************************************************* Input file
> size is 258800, 506640 0...10...20...30...40...50ERROR 1: Kakadu Core
> Error: Too many tile-parts for tile 0.  No tile may have more than
> 255 parts.
> 
> This application has requested the Runtime to terminate it in an
> unusual way. Please contact the application's support team for more
> information. 
> *********************************************************

Wim,

This error comes from the Kakadu library.
I don't use Kakadu myself but I remember there was a limit of tile-parts
number as 255 max.

I'm not sure if the limit still exists, but AFAIK there was some plan to
change it.

May be you can ask on the Kakadu library list:

http://tech.groups.yahoo.com/group/kakadu_jpeg2000/

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net


More information about the FWTools mailing list