Browse Source

r.out.gdal: fix building overviews

use current GDAL dataset when building overviews for GDAL MEM driver
Markus Metz 4 years ago
parent
commit
e36e8f859f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raster/r.out.gdal/main.c

+ 1 - 1
raster/r.out.gdal/main.c

@@ -675,7 +675,7 @@ int main(int argc, char *argv[])
 	    ol[i] = oi;
 	    oi *= 2;
 	}
-	if (GDALBuildOverviews(hDstDS, "NEAREST", n_overviews, ol,
+	if (GDALBuildOverviews(hCurrDS, "NEAREST", n_overviews, ol,
 	                       0, NULL, NULL, NULL) != CE_None) {
 	    G_warning(_("Unable to build overviews"));
 	}