Re: [gdal-dev] TIFFMergeFieldInfo error when adding overviews to large tiff

2013-04-17 Thread Even Rouault
Le mercredi 17 avril 2013 00:01:41, Eli Adam a écrit : > On Tue, Apr 16, 2013 at 2:11 PM, Even Rouault > > wrote: > > I've investigated a bit and I've discovered that while computing > > overviews, libtiff constantly switches from TIFF "directories" (main > > image, first overview,second overview

Re: [gdal-dev] TIFFMergeFieldInfo error when adding overviews to large tiff

2013-04-16 Thread Eli Adam
On Tue, Apr 16, 2013 at 2:11 PM, Even Rouault wrote: > I've investigated a bit and I've discovered that while computing overviews, > libtiff constantly switches from TIFF "directories" (main image, first > overview,second overview, etc...). While doing this, it calls each time client > code to ins

Re: [gdal-dev] TIFFMergeFieldInfo error when adding overviews to large tiff

2013-04-16 Thread Even Rouault
Le mardi 16 avril 2013 22:07:52, Eli Adam a écrit : > Even, > > Thanks for checking into this and the ideas. I've investigated a bit and I've discovered that while computing overviews, libtiff constantly switches from TIFF "directories" (main image, first overview,second overview, etc...). Whil

Re: [gdal-dev] TIFFMergeFieldInfo error when adding overviews to large tiff

2013-04-16 Thread Eli Adam
Even, Thanks for checking into this and the ideas. Eli On Tue, Apr 16, 2013 at 10:18 AM, Even Rouault wrote: > Le lundi 15 avril 2013 23:47:33, Eli Adam a écrit : >> Hi all, >> >> I'm adding internal overviews to a ~20G tiff file and I get this error >> (1000+ times): >> gdaladdo topo_mosaic_43

Re: [gdal-dev] TIFFMergeFieldInfo error when adding overviews to large tiff

2013-04-16 Thread Even Rouault
Le lundi 15 avril 2013 23:47:33, Eli Adam a écrit : > Hi all, > > I'm adding internal overviews to a ~20G tiff file and I get this error > (1000+ times): > gdaladdo topo_mosaic_4326.tif 2 4 8 16 32 64 128 256 512 1024 --config > COMPRESS_OVERVIEW PACKBITS > ERROR 1: topo_mosaic_4326.tif:Failed to

[gdal-dev] TIFFMergeFieldInfo error when adding overviews to large tiff

2013-04-15 Thread Eli Adam
Hi all, I'm adding internal overviews to a ~20G tiff file and I get this error (1000+ times): gdaladdo topo_mosaic_4326.tif 2 4 8 16 32 64 128 256 512 1024 --config COMPRESS_OVERVIEW PACKBITS ERROR 1: topo_mosaic_4326.tif:Failed to allocate memory for for fields array (1410046 elements of 16 bytes