Opened 14 years ago

Closed 14 years ago

#3501 closed defect (fixed)

JPIPKAK fails to access 4th band in a 4 band JPIP stream

Reported by: gbriggs Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: JPIP kakadu JPEG2000
Cc:

Description (last modified by warmerdam)

Using gdal_translate to grab just the 4th band from a 4 band image streamed from the iasdemo.ittvis.com server causes an error. I expected to copy the 4th band to the output tif.

Command: C:\gdal170\bin>gdal_translate -b 4 jpip://216.150.195.220/JP2Server/qb_boulder_msi_uint qb_bouldermsi_band4.tif

Error:

Warning 6: A dataset opened by GDALOpenShared should have the same filename (jpi
p://216.150.195.220/JP2Server/qb_boulder_msi_uint) and description (http://216.1
50.195.220/JP2Server/qb_boulder_msi_uint)
Input file size is 1024, 1024
Band 4 requested, but only bands 1 to 3 available.

Change History (2)

comment:1 by warmerdam, 14 years ago

Component: defaultGDAL_Raster
Description: modified (diff)
Owner: changed from Frank Warmerdam to warmerdam

Corrected assigned to userid.

comment:2 by warmerdam, 14 years ago

Resolution: fixed
Status: newclosed

I have updated Initialize() to use the actual number of components except in the YCC when 3 is used. I modified processing in GetNextUpdatedRegion?() rewritten to fetch data in passes of one or three bands as needed in trunk (r19432) and 1.6-esri (r19433) since it is not possible to processall four bands at once due to limitations of the kdu_region_compressor.

Note: See TracTickets for help on using tickets.