class GDAL::Utils::DEM::Options
Ruby wrapper for GDALDEMProcessingOptions C API (options for gdaldem utility).
@see GDAL::Utils::DEM
@see gdal.org/programs/gdaldem.html gdaldem utility documentation.
Attributes
c_pointer[R]
@return [AutoPointer] C pointer to the GDALDEMProcessingOptions.
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/gdaldem.html
List of available options could be found in gdaldem utility documentation.
@example Create a new instance.
options = GDAL::Utils::DEM::Options.new(options: ["-of", "GTiff", "-co", "COMPRESS=DEFLATE"])
@param options [Array<String>] The options list.
# File lib/gdal/utils/dem/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/dem/options.rb, line 46 def options_pointer ::FFI::GDAL::Utils.GDALDEMProcessingOptionsNew(string_list.c_pointer, nil) end