[gdal-dev] python SetCacheMax, GetCacheMax

Gregory, Matthew matt.gregory at oregonstate.edu
Fri May 11 19:55:13 EDT 2012


Hi all,

Probably a newbie question.  I'm trying to investigate some read rates without the benefit of caching from Python.  When I do this:

  from osgeo import gdal
  gdal.SetCacheMax(0)
  print gdal.GetCacheMax()

I always get the environment variable value GDAL_CACHE_MAX instead of 0.  Throughout my test script, I can also query gdal.GetCacheUsed() and it increases toward GDAL_CACHE_MAX.  Am I totally misunderstanding their use?  I'm on Windows 7 64-bit, GDAL version 1.7.

matt


More information about the gdal-dev mailing list