[mapserver-users] maybe off-topic: gdal question size of tiff

Till Adams adams at terrestris.de
Mon Mar 30 06:32:52 EDT 2009


Dear list,

may be off topic here, butI'm sure all the gdal experts are also 
wqatching this list:

I try to downscale (gdal_translate) tiff images to lower resolution. I 
got several which have more than 30000 px in one direction - and these 
are the ones causing problems, all others made with the same software 
(uncompressed) work fine.

Gdalinfo works fine on all images, this is the output:

Size is 32500, 23317
Coordinate System is `'
Metadata:
 TIFFTAG_SOFTWARE=Adobe Photoshop CS3 Macintosh
 TIFFTAG_DATETIME=2009:02:20 09:17:28
 TIFFTAG_XRESOLUTION=400
 TIFFTAG_YRESOLUTION=400
 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
 INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,23317.0)
Upper Right (32500.0,    0.0)
Lower Right (32500.0,23317.0)
Center      (16250.0,11658.5)
Band 1 Block=32500x1 Type=Byte, ColorInterp=Red
Band 2 Block=32500x1 Type=Byte, ColorInterp=Green
Band 3 Block=32500x1 Type=Byte, ColorInterp=Blue


When trying to convert (gdal_translate) or cut (gdalwarp) them, I get 
this error on images > 30000px in x OR y:

Input file size is 32500, 23317
0ERROR 1: berlin.tif:2273407500: Invalid strip byte count, strip 0
ERROR 1: TIFFReadEncodedStrip() failed.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0

The images are NOT bigger than 4GB!!
Is there anyone who has any clue, what is going wrong?

Thanks a lot!

Till

 
----------------------------------------------------------
terrestris GmbH & Co. KG
Irmintrudisstrasse 17
53111 Bonn
Germany

Till Adams
Geschäftsführung

Tel: +49 (0)228 / 962 899-52
Fax: +49 (0)228 / 962 899-57
adams at terrestris.de http://www.terrestris.de
Amtsgericht Bonn, HRA 6835
---------------------------------------------------------

Komplementärin:

terrestris Verwaltungs GmbH

vertreten durch:
Hinrich Paulsen, Till Adams



More information about the mapserver-users mailing list