Opened 17 years ago

Closed 16 years ago

#1669 closed defect (worksforme)

Copying a MrSID image to JPG 2000 greater than 4GB fails.

Reported by: gaopeng Owned by: warmerdam
Priority: high Milestone: 1.5.0
Component: GDAL_Raster Version: 1.4.1
Severity: normal Keywords: JP2000 Larger Than 4G
Cc:

Description

Converting the following MrSID image to JPEG2000 fails with an exception at:

jp2kakdataset.cpp:

oCodeStream.create(&oSizeParams, poOutputFile );

The sample image is available.

:\GDAL\bld\bin>gdalinfo
kake\testdata\LargeImages\MrSid\lincolnnw.sid

Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Size is 97417, 98191 Coordinate System is `' Origin = (115999.750000000010000,250512.829999999990000) Pixel Size = (0.500000000000000,-0.500000000000000) Metadata:

IMAGEINPUT_NAME=E:\HighResImg\lincolnnw.img IMAGEINPUT_FILE_SIZE=2958042072.000000 IMAGEDYNAMIC_RANGE_WINDOW=256.000000 IMAGEDYNAMIC_RANGE_LEVEL=127.500000 IMGTIME_STAMP=Sat Jul 09 00:36:00 2005

IMGHORIZONTAL_UNITS=feet IMGPROJECTION_NAME=Transverse Mercator IMGPROJECTION_TYPE=Internal IMGPROJECTION_NUMBER=9 IMGPROJECTION_ZONE=0 IMGSPHEROID_NAME=GRS 1980 IMGSPHEROID_SEMI_MAJOR_AXIS=6378137.000000 IMGSPHEROID_SEMI_MINOR_AXIS=6356752.314140 IMGSPHEROID_ECCENTRICITY_SQUARED=0.006694 IMGSPHEROID_RADIUS=6371007.180883 IMGPROJECTION_PARAMETERS=0.000000,0.000000,1.000055,0.000000,-1.687525,0.702

495,50000.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000

IMAGECOMPRESSION_VERSION=1,6,1 IMAGETARGET_COMPRESSION_RATIO=20.000000 IMAGECOMPRESSION_NLEV=9 IMAGECOMPRESSION_WEIGHT=4.000000 IMAGECOMPRESSION_GAMMA=2.000000 IMAGECOMPRESSION_BLOCK_SIZE=1536 IMAGECREATION_DATE=Sun Jul 10 18:55:31 2005

IMAGEWIDTH=97417 IMAGEHEIGHT=98191 IMAGECOLOR_SCHEME=0 IMAGEDATA_TYPE=0 IMAGEBITS_PER_SAMPLE=8 IMAGEXY_ORIGIN=116000.000000,250512.580000 IMAGEX_RESOLUTION=0.500000 IMAGEY_RESOLUTION=0.500000 VERSION=MG2

Corner Coordinates: Upper Left ( 115999.750, 250512.830) Lower Left ( 115999.750, 201417.330) Upper Right ( 164708.250, 250512.830) Lower Right ( 164708.250, 201417.330) Center ( 140354.000, 225965.080) Band 1 Block=1024x128 Type=Byte, ColorInterp=Red

Overviews: 48709x49096, 24355x24548, 12178x12274, 6089x6137, 3045x3069, 1523x1

535, 762x768, 381x384, 191x192 Band 2 Block=1024x128 Type=Byte, ColorInterp=Green

Overviews: 48709x49096, 24355x24548, 12178x12274, 6089x6137, 3045x3069, 1523x1

535, 762x768, 381x384, 191x192 Band 3 Block=1024x128 Type=Byte, ColorInterp=Blue

Overviews: 48709x49096, 24355x24548, 12178x12274, 6089x6137, 3045x3069, 1523x1

535, 762x768, 381x384, 191x192

Change History (2)

comment:1 by warmerdam, 17 years ago

Milestone: 1.5.0
Owner: changed from Frank Warmerdam to warmerdam
Status: newassigned

Gao,

I finally managed to setup a test case which produced a 4.6GB output jpeg2000 file using FWTools's JP2KAK driver. The translation appeared to work fine.

Can you provide more info on how to reproduce this? Do things work for you with the FWTools gdal_translate?

comment:2 by warmerdam, 16 years ago

Resolution: worksforme
Status: assignedclosed

Closing for lack of details on how to reproduce.

Note: See TracTickets for help on using tickets.