Browse Source

r.out.gdal: fix https://trac.osgeo.org/grass/ticket/2512

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63683 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 10 năm trước cách đây
mục cha
commit
9180df296d
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      raster/r.out.gdal/export_band.c

+ 0 - 5
raster/r.out.gdal/export_band.c

@@ -237,11 +237,6 @@ int export_band(GDALDatasetH hMEMDS, int band,
 	Rast_get_fp_range_min_max(&sRange, &dfCellMin, &dfCellMax);
     }
 
-    /* suppress useless warnings */
-    CPLPushErrorHandler(CPLQuietErrorHandler);
-    GDALSetRasterColorInterpretation(hBand, GPI_RGB);
-    CPLPopErrorHandler();
-    
     sprintf(value, "GRASS GIS %s", GRASS_VERSION_NUMBER);
     GDALSetMetadataItem(hBand, "Generated_with", value, NULL);