[FWTools] JP2k code stream error

Shaun Kolomeitz Shaun.Kolomeitz at epa.qld.gov.au
Wed Apr 30 17:53:20 EDT 2008

I am attempting to resample an Image provided in JPEG2000 format,
provided by an external provider, but keep coming across the following
Can anyone suggest how I could resample or "switch file seeking to
disabled" please ?
(I am unable to even read a small area of the image as shown below)

$ gdal_translate -of hfa -srcwin 0 0 100 100 North_Queensland_25x.jp2
Input file size is 190000, 390000
0ERROR 1: Kakadu Error:
Tile-part holds some but not all the packets of a precinct for which PLT
information is being used to extract precinct addresses for random
access.  In particular, the current tile has its packets sequenced so
that all packets of any given precinct appear consecutively and yet a
tile-part boundary has been inserted between the packets of a precinct.
While this is not illegal, it indicates very poor judgement in the
placement of tile-part boundaries.  To process this code-stream, you
will have to open it again with file seeking disabled.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Open GDAL Datasets:
  1 N HFA    100x100x3 /tmp/test1.img

Kind regards,

Think B4U Print
1 ream of paper = 6% of a tree and 5.4kg CO2 in the atmosphere
3 sheets of A4 paper = 1 litre of water

WARNING: This e-mail (including any attachments) has originated from a Queensland Government department and may contain information that is confidential, private, or covered by legal professional privilege, and may be protected by copyright.  

You may use this e-mail only if you are the person(s) it was intended to be sent to and if you use it in an authorised way.  No one is allowed to use, review, alter, transmit, disclose, distribute, print or copy this e-mail without appropriate authority.  If you have received this e-mail in error, please inform the sender immediately by phone or e-mail and delete this e-mail, including any copies, from your computer system network and destroy any hardcopies.

Unless otherwise stated, this e-mail represents the views of the sender and not the views of the Environmental Protection Agency.

Although this e-mail has been checked for the presence of computer viruses, the Environmental Protection Agency provides no warranty that all viruses have been detected and cleaned. Any use of this e-mail could harm your computer system.  It is your responsibility to ensure that this e-mail does not contain and is not affected by computer viruses, defects or interference by third parties or replication problems (including incompatibility with your computer system).

E-mails sent to and from the Environmental Protection Agency will be electronically stored, managed and may be audited, in accordance with the law and Queensland Government Information Standards (IS31, IS38, IS40, IS41 and IS42) to the extent they are consistent with the law.


More information about the FWTools mailing list