Ticket #4340 (closed defect: fixed)
JP2KAK: Reads from overview band returns data from the main band
|Reported by:||yehiyam||Owned by:||warmerdam|
|Severity:||normal||Keywords:||jp2kak kakadu jpeg2000|
System: windows7 64 bit with gdal source version 1.8.1 SDK version v6.0 (v6_0-00828N)
When opening a .jp2 file with the kakadu driver (jp2kak) and trying to read a region from an overview band, the data is read from the main band.
To reproduce: Use the CSharp sample app GDALReadDirect GDALReadDirect utm.jp2 overview0.png 0
this will create an image the size of the first overview, but with the contents from the upper right quarter of the main band.