module GDAL::EnvironmentMethods
Getters and setters for the GDAL
environment.
Public Instance Methods
cache_max()
click to toggle source
@return [Integer] The maximum cache memory.
# File lib/gdal/environment_methods.rb, line 7 def cache_max FFI::GDAL::GDAL.GDALGetCacheMax end
cache_max64()
click to toggle source
@return [Integer] The maximum cache memory.
# File lib/gdal/environment_methods.rb, line 17 def cache_max64 FFI::GDAL::GDAL.GDALGetCacheMax64 end
cache_max64=(bytes)
click to toggle source
@param bytes [Integer]
# File lib/gdal/environment_methods.rb, line 22 def cache_max64=(bytes) FFI::GDAL::GDAL.GDALSetCacheMax64(bytes) end
cache_max=(bytes)
click to toggle source
@param bytes [Integer]
# File lib/gdal/environment_methods.rb, line 12 def cache_max=(bytes) FFI::GDAL::GDAL.GDALSetCacheMax(bytes) end
cache_used()
click to toggle source
@return [Integer] The amount of used cache memory.
# File lib/gdal/environment_methods.rb, line 27 def cache_used FFI::GDAL::GDAL.GDALGetCacheUsed end
cache_used64()
click to toggle source
@return [Integer] The amount of used cache memory.
# File lib/gdal/environment_methods.rb, line 32 def cache_used64 FFI::GDAL::GDAL.GDALGetCacheUsed64 end
dump_open_datasets(file_path)
click to toggle source
@param file_path [String]
# File lib/gdal/environment_methods.rb, line 42 def dump_open_datasets(file_path) file_ptr = FFI::CPL::Conv.CPLOpenShared(file_path, "w", false) FFI::GDAL::GDAL.GDALDumpOpenDatasets(file_ptr) FFI::CPL::Conv.CPLCloseShared(file_ptr) end
flush_cache_block()
click to toggle source
@return [Boolean]
# File lib/gdal/environment_methods.rb, line 37 def flush_cache_block FFI::GDAL::GDAL.GDALFlushCacheBlock end