[Gdal-dev] How to get configuration options

Daniele Romagnoli dany.geotools at gmail.com
Sat Aug 19 14:38:49 EDT 2006


Hi list,
I have another stupid question for you :)

I'm using Java and I'm trying to detect if GDAL is using CACHE.
Which is the right way to use gdal.GetConfigOption(String, String)?

I'have tried:
String useCache = gdal.GetConfigOption("GDAL_FORCE_CACHING", null);
It returns null;

I'have tried:
String useCache = gdal.GetConfigOption("GDAL_FORCE_CACHING", "");
It returns null;

I'have tried:
String useCache = gdal.GetConfigOption("GDAL_FORCE_CACHING", "Hello!");
It returns "Hello!".


Where am I wrong?



Thanks a lot.



-- 
Best Regards,
Daniele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060819/16f239cc/attachment.html


More information about the Gdal-dev mailing list