class GDAL::GridAlgorithms::AlgorithmBase
Base abstract class for all grid algorithms.
Attributes
options[R]
@return Options
object.
Public Class Methods
new()
click to toggle source
# File lib/gdal/grid_algorithms/algorithm_base.rb, line 10 def initialize @options = options_class.new assign_size_of_structure end
Public Instance Methods
c_identifier()
click to toggle source
@return [Symbol] C identifier for the algorithm.
# File lib/gdal/grid_algorithms/algorithm_base.rb, line 21 def c_identifier # This method must be overridden in subclasses. end
options_class()
click to toggle source
@return [Class] Options
class.
# File lib/gdal/grid_algorithms/algorithm_base.rb, line 16 def options_class # This method must be overridden in subclasses. end
Private Instance Methods
assign_size_of_structure()
click to toggle source
# File lib/gdal/grid_algorithms/algorithm_base.rb, line 27 def assign_size_of_structure # Starting GDAL 3.6.0 we must assign nSizeOfStructure to the size of the structure. return unless @options.members.include?(:n_size_of_structure) @options[:n_size_of_structure] = @options.size end