Bläddra i källkod

r.in.gdal: user msg about actually used GDAL cache size

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@61360 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 11 år sedan
förälder
incheckning
cde52ef96c
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4 1
      raster/r.in.gdal/main.c

+ 4 - 1
raster/r.in.gdal/main.c

@@ -204,8 +204,11 @@ int main(int argc, char *argv[])
     /*      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);
 
 
     /* -------------------------------------------------------------------- */