<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=140464115-25042007><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=140464115-25042007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140464115-25042007><FONT face=Arial size=2>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:</FONT></SPAN></DIV>
<DIV><SPAN class=140464115-25042007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140464115-25042007><FONT face=Arial size=2>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 </FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=140464115-25042007>I had to
play around with the BLOCKXSIZE, because gdal_translate would throw the
following error early in the conversion process:</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=140464115-25042007></SPAN></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=140464115-25042007>*********************************************************</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=140464115-25042007>Input
file size is 258800, 506640<BR>0...10...20...30...40...50ERROR 1: Kakadu Core
Error:<BR>Too many tile-parts for tile 0. No tile may have more than 255
parts.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=140464115-25042007>This
application has requested the Runtime to terminate it in an unusual
way.<BR>Please contact the application's support team for more
information.</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=140464115-25042007><SPAN
class=140464115-25042007>*********************************************************</SPAN></SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=140464115-25042007></SPAN></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=140464115-25042007>As I
increased the BLOCKXSIZE, the process would go further, but now, regardless of
the BLOCKXSIZE, I get the above mentioned error about 50% into the
conversion.</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=140464115-25042007>My
harddisks (F and G) have lots of free space, about 300GB free on each, so I
don't think that is a problem. My machine is a dual core dell GX620 with 4GB of
RAM, and keeping an eye on task manager, I see lots of free RAM the whole
time.</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=140464115-25042007></SPAN></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=140464115-25042007>Any idea
how I avoid the "too many tile-parts" issue?</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>Yours truly,</FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>Wim Chalmet</FONT></DIV>
<DIV align=left><FONT face=Arial size=2><STRONG>Iunctus Geomatics
Corp.</STRONG></FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Director of Operations</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>817 4Ave S, suite 401</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Lethbridge, AB, Canada</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>T1J 0P3</FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>Phone: (403) 381-2800, ext
28</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Fax: (403) 381-2804</FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><A
href="http://www.terraengine.com/">www.terraEngine.com</A></FONT></DIV>
<DIV> </DIV></BODY></HTML>