<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
I have been trying to use the v2 OpenJPEG2000 driver with GDAL to read NITF files that have been compressed with jpeg2000.<br>
<br>
When I am trying to actually load these files and display them, my software sometimes succeeds, sometimes fails, sometimes gives bogus results. I also occaisionally get a dump like this:<br>
<br>
ERROR 1: Marker is not compliant with its position<br>
<br>
ERROR 1: opj_read_header() failed<br>
ERROR 1: IReadBlock failed at X offset 0, Y offset 0<br>
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0<br>
<br>
I have tried to use gdalinfo on the image in question, and get the following:<br>
<br>
ERROR 4: `P003.ntf' not recognised as a supported file format.<br>
<br>
ERROR 1: Unable to open JPEG2000 image within NITF file.<br>
Is the JP2KAK driver available?<br>
gdalinfo failed - unable to open 'P003.ntf'.<br>
<br>
<br>
Any ideas why it seems to be looking for JP2KAK there? I was trying to not use the kakadu driver, because it is not free. Also seems weird to me that the image does load sometimes, and not others. Very buggy feeling.<br>
<br>
</div>
</body>
</html>