[GRASS-SVN] r71677 - grass/trunk/raster/r.in.gdal
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 11 08:42:45 PST 2017
Author: mmetz
Date: 2017-11-11 08:42:45 -0800 (Sat, 11 Nov 2017)
New Revision: 71677
Modified:
grass/trunk/raster/r.in.gdal/main.c
Log:
r.in.gdal: no GDALGetCacheMax64 on MS Windows ?
Modified: grass/trunk/raster/r.in.gdal/main.c
===================================================================
--- grass/trunk/raster/r.in.gdal/main.c 2017-11-11 16:29:42 UTC (rev 71676)
+++ grass/trunk/raster/r.in.gdal/main.c 2017-11-11 16:42:45 UTC (rev 71677)
@@ -341,7 +341,7 @@
/* default GDAL memory cache size appears to be only 40 MiB, slowing down r.in.gdal */
if (parm.memory->answer && *parm.memory->answer) {
-#if GDAL_VERSION_NUM >= 1800
+#if GDAL_VERSION_NUM >= 1800 && !defined _WIN32
GDALSetCacheMax64((GIntBig)atol(parm.memory->answer) * 1024 * 1024);
G_verbose_message(_("Using memory cache size: %.1f MiB"), GDALGetCacheMax64()/1024.0/1024.0);
#else
More information about the grass-commit
mailing list