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 _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
