Module: GDAL::EnvironmentMethods

Included in:
GDAL
Defined in:
lib/gdal/environment_methods.rb

Overview

Getters and setters for the GDAL environment.

Instance Method Summary collapse

Instance Method Details

#cache_maxInteger



7
8
9
# File 'lib/gdal/environment_methods.rb', line 7

def cache_max
  FFI::GDAL::GDAL.GDALGetCacheMax
end

#cache_max64Integer



17
18
19
# File 'lib/gdal/environment_methods.rb', line 17

def cache_max64
  FFI::GDAL::GDAL.GDALGetCacheMax64
end

#cache_max64=(bytes) ⇒ Object



22
23
24
# File 'lib/gdal/environment_methods.rb', line 22

def cache_max64=(bytes)
  FFI::GDAL::GDAL.GDALSetCacheMax64(bytes)
end

#cache_max=(bytes) ⇒ Object



12
13
14
# File 'lib/gdal/environment_methods.rb', line 12

def cache_max=(bytes)
  FFI::GDAL::GDAL.GDALSetCacheMax(bytes)
end

#cache_usedInteger



27
28
29
# File 'lib/gdal/environment_methods.rb', line 27

def cache_used
  FFI::GDAL::GDAL.GDALGetCacheUsed
end

#cache_used64Integer



32
33
34
# File 'lib/gdal/environment_methods.rb', line 32

def cache_used64
  FFI::GDAL::GDAL.GDALGetCacheUsed64
end

#dump_open_datasets(file_path) ⇒ Object



42
43
44
45
46
# 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_blockBoolean



37
38
39
# File 'lib/gdal/environment_methods.rb', line 37

def flush_cache_block
  FFI::GDAL::GDAL.GDALFlushCacheBlock
end