Re: [gdal-dev] [Python bindings] BuildOverviews() not supported for VRT dataset

2020-02-07 Thread umbertofilippo
just edited the previous post (again, wrong copy and paste, shame on me) -- 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

Re: [gdal-dev] [Python bindings] BuildOverviews() not supported for VRT dataset

2020-02-07 Thread umbertofilippo
Yeah you're totally right obviously :) i forgot to copy and paste ds = gdal.BuildVRT(out_vrt, rasters, options=vrt_options) in between... out_vrt = os.path.join(out_dir, 'mosaic.vrt') ds = gdal.BuildVRT(out_vrt, [raster1.tif, raster2.tif]) ds = None # this did the trick! ds = gdal.BuildVRT(out_vr

Re: [gdal-dev] [Python bindings] BuildOverviews() not supported for VRT dataset

2020-02-07 Thread Even Rouault
On vendredi 7 février 2020 03:58:02 CET umbertofilippo wrote: > Solved by looking at this answer > dvrt/299218> > > > out_vrt = os.path.join(out_dir, 'mosaic.vrt') > ds = gdal.BuildVRT(out_vrt, [raster1.tif, raster2.t

Re: [gdal-dev] [Python bindings] BuildOverviews() not supported for VRT dataset

2020-02-07 Thread umbertofilippo
Solved by looking at this answer : out_vrt = os.path.join(out_dir, 'mosaic.vrt') ds = gdal.BuildVRT(out_vrt, [raster1.tif, raster2.tif]) ds = None # this did the trick! factors = [128, 256, 512] gdal.SetCon

[gdal-dev] [Python bindings] BuildOverviews() not supported for VRT dataset

2020-02-07 Thread umbertofilippo
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.BuildOvervie