Opened 19 years ago
Last modified 19 years ago
#656 closed defect (fixed)
gdaladdo Error : PackBitsDecode: Not enough data for scanline
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
I have a 1 bit tiff image to use in mapserver. To get it well rendered in Mapserver (greyscale effect), I must add overviews. Therefore, some adviced me to convert it to 8 bits then to add overviews. To do that, here is the routine i launch : # Step 1: convert paletted image to 24bit RGB. tiff2rgba input_1bit.tif 24bit.tif # Step 2: extract one band of the RGB image as greyscale image gdal_translate -b 1 24bit.tif 8bit.tif # Step 3: Build overviews gdaladdo -r average 8bit.tif 2 4 8 16 32 64 This works well however, the 8bit.tif output file is much heavy (> 140 MB). So I need to use packbit compression, alter step 2 to be : gdal_translate -b 1 -co TILED=YES -co COMPRESS=PACKBITS 24bit.tif 8bit.tif Hopelessly, gdaladdo returns errors : ERROR 1: IReadBlock failed at X offset 0, Y offset 32 ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 32 ERROR 1: 8bitc.tif:PackBitsDecode: Not enough data for scanline 0 ERROR 1: TIFFReadEncodedTile() failed.
Attachments (1)
Change History (4)
by , 19 years ago
Attachment: | input_1bit.tif added |
---|
comment:1 by , 19 years ago
Pierre, I have reproduced your bug, but I think it relates to the problem in #660. I will wait for Andrey to fix that and then revisit this one.
comment:2 by , 19 years ago
I have tested this and it seems that all works fine now (after #660 fixing). Andrey
comment:3 by , 19 years ago
Pierre, I am closing this as I believe it to be fixed. Note that GDAL 1.2.4 did not include the overview fixes (despite the claims of the release notes), so if you want to re-try please grab a nightly snapshot of GDAL. Re-open if the problem persists.
Note:
See TracTickets
for help on using tickets.
1bit tiff image sample