[gdal-dev] Problems writing big tiff image with RasterIO function

Even Rouault even.rouault at mines-paris.org
Mon Oct 31 15:17:18 EDT 2011

Selon Jorge Martin <jormarfe at gmail.com>:

> Hello,
>        I am using RasterIO function to write tiff files. The problem
> appears when the image size is aprox. 25000x25000 (500Mb), the last lines
> of the image are not correctly written. The last lines are written with 0
> or 255 value. I have checked that if I only write a tiff file with the last
> lines of the image, this lines are correctly written.
>      This problem, could be solved writing the image by blocks (using the
> function WriteBlock() )?

Hum, provided there is no bug in your code, this sounds like a bug. Not sure
WriteBlock() would help.

Could you post a small and self-contained code that demonstrates the issue ?

You didn't mention your GDAL version. If it is not a recent one, you could try
upgrading and see if it works better.

> Best Regards,
>  Jorge

More information about the gdal-dev mailing list