Sha256: a2e046c04de9147e5b160cac35c096318966a0835dd13d7bdf6802c52ef321bc
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.1.0 | lib/gdal/environment_methods.rb |
ffi-gdal-1.0.4 | lib/gdal/environment_methods.rb |
ffi-gdal-1.0.3 | lib/gdal/environment_methods.rb |