class GDAL::Utils::Info::Options
Ruby wrapper for GDALInfoOptions C API (options for gdalinfo utility).
@see GDAL::Utils::Info
@see gdal.org/programs/gdalinfo.html gdalinfo utility documentation.
Attributes
c_pointer[R]
@return [AutoPointer] C pointer to the GDALInfoOptions.
options[R]
@return [Array<String>] The options.
string_list[R]
Public Class Methods
new(options: [])
click to toggle source
Create a new instance.
@see gdal.org/programs/gdalinfo.html
List of available options could be found in gdalinfo utility documentation.
@example Create a new instance.
options = GDAL::Utils::Info::Options.new(options: ["-json", "-mdd", "all"])
@param options [Array<String>] The options list.
# File lib/gdal/utils/info/options.rb, line 36 def initialize(options: []) @options = options @string_list = ::GDAL::Utils::Helpers::StringList.new(strings: options) @c_pointer = AutoPointer.new(options_pointer) end
Private Instance Methods
options_pointer()
click to toggle source
# File lib/gdal/utils/info/options.rb, line 46 def options_pointer ::FFI::GDAL::Utils.GDALInfoOptionsNew(string_list.c_pointer, nil) end