[GRASS-SVN] r61359 - grass/trunk/raster/r.in.gdal

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 23 01:33:35 PDT 2014


Author: neteler
Date: 2014-07-23 01:33:35 -0700 (Wed, 23 Jul 2014)
New Revision: 61359

Modified:
   grass/trunk/raster/r.in.gdal/main.c
Log:
r.in.gdal: user msg about actually used GDAL cache size

Modified: grass/trunk/raster/r.in.gdal/main.c
===================================================================
--- grass/trunk/raster/r.in.gdal/main.c	2014-07-23 07:37:34 UTC (rev 61358)
+++ grass/trunk/raster/r.in.gdal/main.c	2014-07-23 08:33:35 UTC (rev 61359)
@@ -204,8 +204,11 @@
     /*      Fire up the engines.                                            */
     /* -------------------------------------------------------------------- */
     GDALAllRegister();
-    if (parm.memory->answer && *parm.memory->answer)
+    if (parm.memory->answer && *parm.memory->answer) {
            GDALSetCacheMax(atol(parm.memory->answer) * 1024 * 1024);
+           G_message(_("Using user memory cache size: %.1f MiB"), GDALGetCacheMax()/1024.0/1024.0);
+    } else
+        G_message(_("Using default GDAL memory cache size: %.1f MiB"), GDALGetCacheMax()/1024.0/1024.0);
 
 
     /* -------------------------------------------------------------------- */



More information about the grass-commit mailing list