Sha256: d90f82a56761f877c82cca92112a13ed6a92246f8dd6224312187571e4a54841
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true module GDAL # Getters and setters for the GDAL environment. module EnvironmentMethods # @return [Integer] The maximum cache memory. def cache_max FFI::GDAL::GDAL.GDALGetCacheMax end # @param bytes [Integer] def cache_max=(bytes) FFI::GDAL::GDAL.GDALSetCacheMax(bytes) end # @return [Integer] The maximum cache memory. def cache_max64 FFI::GDAL::GDAL.GDALGetCacheMax64 end # @param bytes [Integer] def cache_max64=(bytes) FFI::GDAL::GDAL.GDALSetCacheMax64(bytes) end # @return [Integer] The amount of used cache memory. def cache_used FFI::GDAL::GDAL.GDALGetCacheUsed end # @return [Integer] The amount of used cache memory. def cache_used64 FFI::GDAL::GDAL.GDALGetCacheUsed64 end # @return [Boolean] def flush_cache_block FFI::GDAL::GDAL.GDALFlushCacheBlock end # @param file_path [String] 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.0.2 | lib/gdal/environment_methods.rb |
ffi-gdal-1.0.1 | lib/gdal/environment_methods.rb |
ffi-gdal-1.0.0 | lib/gdal/environment_methods.rb |