Re: [gdal-dev] Problem with image overview creation in GTiff files

2008-10-21 Thread Vincent Schut
brian wrote: by any chance do these tiffs have 4 bands? rgba? In my case (not the original reporter), no. Happens with any number of bands, well, at least with 3 and 7. Datatypes byte, float32 and int16, if I recall correctly. Vincent. brian On Thu, 2008-10-16 at 16:03 -0500, Ozy

Re: [gdal-dev] Problem with image overview creation in GTiff files

2008-10-20 Thread Even Rouault
Vincent, Thanks for your hints. I've tried the following python script : import gdal ds=gdal.GetDriverByName('GTiff').Create('tiled.tif',1,1,4) ds.GetRasterBand(1).Fill(0) ds.BuildOverviews('NEAR', overviewlist = [2]) (I think it is important that the size of the image must be big

Re: [gdal-dev] Problem with image overview creation in GTiff files

2008-10-17 Thread Frank Warmerdam
Ozy Sjahputera wrote: I am trying to create image overviews for a GTiff file using GDALDataset::BuildOverviews. I keep getting various errors such as: ERROR 1: TIFFSetField:VISUAL.tif: Cannot modify tag Compression while writing ... writing ERROR 1: TIFFSetField:VISUAL.tif: Cannot modify