浏览代码

r.in.gdal: msg cosmetics

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@61361 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 11 年之前
父节点
当前提交
a1d0e346d0
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      raster/r.in.gdal/main.c

+ 3 - 2
raster/r.in.gdal/main.c

@@ -204,11 +204,12 @@ int main(int argc, char *argv[])
     /*      Fire up the engines.                                            */
     /* -------------------------------------------------------------------- */
     GDALAllRegister();
+    /* default GDAL memory cache size appears to be only 40 MiB, slowing down r.in.gdal */
     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);
+           G_verbose_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);
+        G_verbose_message(_("Using default GDAL memory cache size: %.1f MiB"), GDALGetCacheMax()/1024.0/1024.0);
 
 
     /* -------------------------------------------------------------------- */