Sha256: f32df081c8649d0eb16a3a4eb83ce90073303cfc0aa66214b61cba7d9468a78f
Contents?: true
Size: 884 Bytes
Versions: 9
Compression:
Stored size: 884 Bytes
Contents
# frozen_string_literal: true require 'forwardable' require_relative '../gdal' module GDAL # @return [FFI::GDAL::RPCInfo] attr_reader :c_struct # Wrapper for FFI::GDAL::RPCInfo. class RPCInfo extend Forwardable def_delegator :@c_struct, :[] # @param struct_or_ptr [FFI::GDAL::RPCInfo, FFI::Pointer] def initialize(struct_or_ptr = nil) @c_struct = if struct_or_ptr.is_a? FFI::GDAL::RPCInfo struct_or_ptr elsif struct_or_ptr.is_a? FFI::Pointer FFI::GDAL::RPCInfo.new(struct_or_ptr) else FFI::GDAL::RPCInfo.new end end # @return [FFI::Pointer] def c_pointer @c_struct.to_ptr end # @return [Array<String>] def to_metadata FFI::GDAL::Alg.RPCInfoToMD(@c_struct).read_array_of_string(0) end end end
Version data entries
9 entries across 9 versions & 1 rubygems