<div dir="ltr"><div class="gmail_extra">Is there a certain size limit that can be handled by 2.1.0, or is it more complicated than that?</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 16, 2017 at 2:26 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On lundi 16 octobre 2017 14:08:32 CEST Michael Katz - NOAA Affiliate wrote:<br>
> 2GB file: <a href="https://www.dropbox.com/s/4dng8ugothc5uh7/top15-nc-" rel="noreferrer" target="_blank">https://www.dropbox.com/s/<wbr>4dng8ugothc5uh7/top15-nc-</a>> cir-50cm_48201_harris.zip?dl=0<br>
><br>
> I can read some other .jp2 files, but with this particular one I get:<br>
><br>
> C:\gdal-2.1.0\all\bin\gdal\<wbr>apps>gdalinfo<br>
> C:\top15-nc-cir-50cm-harris_<wbr>48201.jp2 --debug on<br>
> GNM: GNMRegisterAllInternal<br>
> GNM: RegisterGNMFile<br>
> GNM: RegisterGNMdatabase<br>
> OPENJPEG: info: Start to read j2k main header (0).<br>
> ERROR 1: Prevent buffer overflow (x1: 216933, y1: 170700)<br>
><br>
> ERROR 1: Marker handler function failed to read the marker segment<br>
><br>
> ERROR 1: opj_read_header() failed<br>
> gdalinfo failed - unable to open 'C:\top15-nc-cir-50cm-harris_<wbr>48201.jp2'.<br>
><br>
><br>
> Any insight into whether this is a problem with the file or with GDAL?<br>
<br>
This is a limitation of the openjpeg version you use. Upgrade to latest<br>
openjpeg 2.3.0 and latest GDAL as well (trunk, or 2.2.2 by renaming<br>
openjpeg-2.3/include to openjpeg-2.2/include)<br>
<span class="HOEnZb"><font color="#888888"><br>
Even<br>
<br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</font></span></blockquote></div><br></div></div>