[GRASS-SVN] r61360 - grass/branches/releasebranch_7_0/raster/r.in.gdal
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 23 01:36:18 PDT 2014
Author: neteler
Date: 2014-07-23 01:36:18 -0700 (Wed, 23 Jul 2014)
New Revision: 61360
Modified:
grass/branches/releasebranch_7_0/raster/r.in.gdal/main.c
Log:
r.in.gdal: user msg about actually used GDAL cache size
Modified: grass/branches/releasebranch_7_0/raster/r.in.gdal/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.in.gdal/main.c 2014-07-23 08:33:35 UTC (rev 61359)
+++ grass/branches/releasebranch_7_0/raster/r.in.gdal/main.c 2014-07-23 08:36:18 UTC (rev 61360)
@@ -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