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

Michael Katz - NOAA Affiliate michael.katz at noaa.gov
Mon Oct 16 14:08:32 PDT 2017


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171016/a969e813/attachment.html>


More information about the gdal-dev mailing list