Sha256: 306875270616e465a042c00361b4b5082f856638f79c23c5c6cc02365fe90def
Contents?: true
Size: 853 Bytes
Versions: 2
Compression:
Stored size: 853 Bytes
Contents
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.0.0.beta7 | lib/gdal/rpc_info.rb |
ffi-gdal-1.0.0.beta6 | lib/gdal/rpc_info.rb |