Преглед изворни кода

r.out.gdal: fix building overviews

use current GDAL dataset when building overviews for GDAL MEM driver
Markus Metz пре 4 година
родитељ
комит
e36e8f859f
1 измењених фајлова са 1 додато и 1 уклоњено
  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"));
 	}