Opened 7 years ago
Closed 7 years ago
#7092 closed defect (fixed)
trouble reading .jp2 file with GDAL 2.2.1
Reported by: | michaeladamkatz | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | 2.2.1 |
Severity: | normal | Keywords: | .jp2 error |
Cc: |
Description
Link to 2GB .jp2 file: https://www.dropbox.com/s/4dng8ugothc5uh7/top15-nc-cir-50cm_48201_harris.zip?dl=0
I am able to open and view this file in LizardTech GeoViewer, so I think it's valid.
I am able to open other .jp2 files in my program using GDAL, and get valid stuff with gdalinfo for those other files, so I think (?) all the necessary DLLs are available to GDAL.
But for the 2GB file linked above, I get:
C:~\gdal-2.1.0\all\bin\gdal\apps>gdalinfo C:\MARPLOT5\_development_import_files\top15-nc-cir-50cm-harris_48201.jp2 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:\MARPLOT5\_development_import_files\top15-nc-cir-50cmharris_48201.jp2'.
Do you have insight into whether this is a problem with the file or a problem with GDAL? Thanks.
Change History (2)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The image was too big for the openjpeg version you use
See https://lists.osgeo.org/pipermail/gdal-dev/2017-October/047397.html
Re-run with "--debug on" for showing which one of the several JPEG2000 drivers was used for opening the file. You can also do "gdalinfo --formats" and search for available JPEG2000 drivers. The first driver on the list is used if you do not skip it with "--config GDAL_SKIP=[driver name]".
Genarally speaking, issue tracker in not the forum for asking questions, use gdal-dev mailing list instead. Users and developers are all there.