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

2011-10-31 Thread Jorge Martin
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 las

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

2011-10-31 Thread Even Rouault
Selon Jorge Martin : > 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 on

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

2011-10-31 Thread Brian Claywell
Jorge, On Mon, Oct 31, 2011 at 2:17 PM, Even Rouault wrote: > Selon Jorge Martin : >>        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 wri

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

2011-11-02 Thread Jorge Martin
Hello, I am using an old version of the gdal library: 1.4.4. I have include below the code I used to write the tiff image: //- WriteImage(string aPath, int *myBuffer, int myNumLines, int myN

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

2011-11-02 Thread Even Rouault
Selon Jorge Martin : > Hello, > > I am using an old version of the gdal library: 1.4.4. > > I have include below the code I used to write the tiff image: > Your code looks OK (provided that the values in your buffer are also OK), so I'd suspect indeed it is a bug in 1.4.4 that hopefu

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

2011-11-02 Thread Jorge
Ok, thank you very much! I have written a little image with only the last lines of the original image and this image does not have the strange values, so the problem should be the bug you have mentioned. Best regards, Jorge El 02/11/2011, a las 09:53, Even Rouault escribió: > Selon Jorge Ma