[Gdal-dev] rgb2pct.py error on geotiff from gdal_merge.py

Frank Warmerdam warmerdam at pobox.com
Wed Mar 8 09:51:01 EST 2006


Ken-ichi wrote:
> Hi all,
> 
> I'm having a problem that seems similar to bugs 329 and 975.  When I 
> create a GeoTIFF using
> 
> /usr/local/bin/gdal_merge.py -ps 5 5 -o test_mosaic.tif_tmp *_tmprgb
> 
> and try to reduce to pseudocolor like
> 
> /usr/local/bin/rgb2pct.py test_mosaic.tif_tmp test_mosaic.tif
> 
> I get a whole slew of errors like this:
> 
> ERROR 1: IReadBlock failed at X offset 0, Y offset 5031
> ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 5031
> ERROR 1: test_mosaic.tif_tmp:0: Invalid strip byte count, strip 133707
> ERROR 1: TIFFReadEncodedStrip() failed.
...
> Any thoughts, advice?  Or is this a bug?


Ken-ichi,

I think this is likely bug 975, which is fixed in CVS.  Try upgrading
to GDAL-cvs (or a nightly snapshot), and try rgb2pct.py again.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list