class GDAL::RPCInfo

Wrapper for FFI::GDAL::RPCInfo.

Public Class Methods

new(struct_or_ptr = nil) click to toggle source

@param struct_or_ptr [FFI::GDAL::RPCInfo, FFI::Pointer]

# File lib/gdal/rpc_info.rb, line 16
def initialize(struct_or_ptr = nil)
  @c_struct = case struct_or_ptr
              when FFI::GDAL::RPCInfo
                struct_or_ptr
              when FFI::Pointer
                FFI::GDAL::RPCInfo.new(struct_or_ptr)
              else
                FFI::GDAL::RPCInfo.new
              end
end

Public Instance Methods

c_pointer() click to toggle source

@return [FFI::Pointer]

# File lib/gdal/rpc_info.rb, line 28
def c_pointer
  @c_struct.to_ptr
end
to_metadata() click to toggle source

@return [Array<String>]

# File lib/gdal/rpc_info.rb, line 33
def to_metadata
  FFI::GDAL::Alg.RPCInfoToMD(@c_struct).read_array_of_string(0)
end