Przeglądaj źródła

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 lat temu
rodzic
commit
a1d0e346d0
1 zmienionych plików z 3 dodań i 2 usunięć
  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);
 
 
     /* -------------------------------------------------------------------- */