Hello everybody, I am trying to build overviews in a VRT dataset with python GDAL.
I try this code: out_vrt = os.path.join(out_dir, 'mosaic.vrt') ds = gdal.BuildVRT(out_vrt, [raster1.tif, raster2.tif]) factors = [128, 256, 512] gdal.SetConfigOption('COMPRESS_OVERVIEW', 'DEFLATE') ds.BuildOverviews("AVERAGE", factors) , but I get this error: ERROR 6: /home/umberto/Documents/jrc/FB_Data4Good/mosaic/test/vrt/mosaic.vrt: BuildOverviews() not supported for this dataset. The VRT mosaic is created, but the overviews are not. As far as I know, gdaladdo should work with VRTs, but I am not sure if gdal.BuildVRT() is actually using it. Any idea? -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev