[gdal-dev] trouble reading a certain .jp2 file

Michael Katz - NOAA Affiliate michael.katz at noaa.gov
Mon Oct 16 15:54:47 PDT 2017


Is there a certain size limit that can be handled by 2.1.0, or is it more
complicated than that?


On Mon, Oct 16, 2017 at 2:26 PM, Even Rouault <even.rouault at spatialys.com>
wrote:

> On lundi 16 octobre 2017 14:08:32 CEST Michael Katz - NOAA Affiliate wrote:
> > 2GB file: https://www.dropbox.com/s/4dng8ugothc5uh7/top15-nc->
> cir-50cm_48201_harris.zip?dl=0
> >
> > I can read some other .jp2 files, but with this particular one I get:
> >
> > C:\gdal-2.1.0\all\bin\gdal\apps>gdalinfo
> > C:\top15-nc-cir-50cm-harris_48201.jp2 --debug on
> > GNM: GNMRegisterAllInternal
> > GNM: RegisterGNMFile
> > GNM: RegisterGNMdatabase
> > OPENJPEG: info: Start to read j2k main header (0).
> > ERROR 1: Prevent buffer overflow (x1: 216933, y1: 170700)
> >
> > ERROR 1: Marker handler function failed to read the marker segment
> >
> > ERROR 1: opj_read_header() failed
> > gdalinfo failed - unable to open 'C:\top15-nc-cir-50cm-harris_
> 48201.jp2'.
> >
> >
> > Any insight into whether this is a problem with the file or with GDAL?
>
> This is a limitation of the openjpeg version you use. Upgrade to latest
> openjpeg 2.3.0 and latest GDAL as well (trunk, or 2.2.2 by renaming
> openjpeg-2.3/include to openjpeg-2.2/include)
>
> Even
>
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171016/12e3445b/attachment.html>


More information about the gdal-dev mailing list