<div dir="ltr"><div>Hi list,</div><div>I'm experimenting with the GTI driver and hitting an issue when trying to add overviews.</div><div>I'm compiling a large number of adjacent non-overlapping tiles, each of which has is own bundled overviews:</div><div><br></div><div>gdalinfo /*snip*/tile-1377-471.tif</div><div><br></div><div>Size is 32768, 32768</div><div>Origin = (3.057607090103000,48.420794507110998)<br>Pixel Size = (0.000004056990000,-0.000002694048000)</div><div>Band 1 Block=512x512 Type=Byte, ColorInterp=Red<br>  NoData Value=0<br>  Overviews: 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, 256x256<br>Band 2 Block=512x512 Type=Byte, ColorInterp=Green<br>  NoData Value=0<br>  Overviews: 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, 256x256<br>Band 3 Block=512x512 Type=Byte, ColorInterp=Blue<br>  NoData Value=0<br>  Overviews: 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, 256x256</div><div><br></div><div>I also have a very low resolution "hat" file that covers the whole work area:</div><div><br></div><div>gdalinfo /*snip*/lr.tif</div><div>Size is 2100, 1792</div><div>Origin = (1.413084112150000,49.303580186365998)<br>Pixel Size = (0.001045206663490,-0.000689676288000)</div><div>Band 1 Block=256x256 Type=Byte, ColorInterp=Red<br>  NoData Value=0<br>  Overviews: 1050x896, 525x448, 263x224, 132x112<br>Band 2 Block=256x256 Type=Byte, ColorInterp=Green<br>  NoData Value=0<br>  Overviews: 1050x896, 525x448, 263x224, 132x112<br>Band 3 Block=256x256 Type=Byte, ColorInterp=Blue<br>  NoData Value=0<br>  Overviews: 1050x896, 525x448, 263x224, 132x112</div><div><br></div><div>I would like to create a GTI dataset referencing all these tiles, and the "hat" dataset, and have created it like so:</div><div><br></div><div>ogrinfo -so -al mosaic.gti.fgb:</div><div><br></div><div>Layer name: tileindex<br>Metadata:<br>  BAND_COUNT=3<br>  DATA_TYPE=Byte<br>  NODATA=0<br>  OVERVIEW_0_FACTOR=2<br>  OVERVIEW_1_FACTOR=4<br>  OVERVIEW_2_FACTOR=8<br>  OVERVIEW_3_FACTOR=16<br>  OVERVIEW_4_FACTOR=32<br>  OVERVIEW_5_FACTOR=64<br>  OVERVIEW_6_FACTOR=128<br>  OVERVIEW_7_DATASET=/*snip*/lr.tif<br>  RESAMPLING=bilinear<br>  RESX=0.00000269495773407954<br>  RESY=0.00000269495773407954</div><div><br></div><div>However when I inspect the gti dataset, the overview count is not what I expect:</div><div><br></div><div>gdalinfo mosaic.gti.fgb:</div><div><br></div><div>Size is 814460, 458598</div><div>Origin = (1.413084000000000,49.303579999999997)<br>Pixel Size = (0.000002694957734,-0.000002694957734)</div><div>Band 1 Block=256x256 Type=Byte, ColorInterp=Undefined<br>  NoData Value=0<br>  Overviews: 203615x114650, 101808x57325, 50904x28663, 25452x14332, 12726x7166, 6363x3583, 2100x1792</div><div><br></div><div>Note the overview list, which I would have expected to be:</div><div><br></div><div>407230x229299, 203615x114650, 101808x57325, 50904x28663, 25452x14332, 12726x7166, 6363x3583, 2100x1792, 1050x896, 525x448, 263x224, 132x112</div><div><br></div><div>but is not, i.e. it is missing the first overview level of the individual tiles, and the overviews of the hat dataset.</div><div>Is this a configuration issue on my end ?</div><div><br></div><div>Thanks,</div><div>Thomas<br></div><div><br></div><div><br></div><div><br></div></div>