Sha256: e0087361dbd72d7e30171a2dfc9f905a1ab83a32917fe12e69df7b6d66123d36
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
module GDAL # Info about GDAL data types (GDT symbols). class DataType # The size in bits. # # @param gdal_data_type [FFI::GDAL::GDAL::DataType] # @return [Fixnum] def self.size(gdal_data_type) FFI::GDAL::GDAL.GDALGetDataTypeSize(gdal_data_type) end # @param gdal_data_type [FFI::GDAL::GDAL::DataType] # @return [Fixnum] def self.complex?(gdal_data_type) FFI::GDAL::GDAL.GDALDataTypeIsComplex(gdal_data_type) end # @param gdal_data_type [FFI::GDAL::GDAL::DataType] # @return [String] def self.name(gdal_data_type) FFI::GDAL::GDAL.GDALGetDataTypeName(gdal_data_type) end # The data type's symbolic name. # # @param name [String] # @return [FFI::GDAL::GDAL::DataType] def self.by_name(name) FFI::GDAL::GDAL.GDALGetDataTypeByName(name.to_s) end # @param gdal_data_type1 [FFI::GDAL::GDAL::DataType] # @param gdal_data_type2 [FFI::GDAL::GDAL::DataType] # @return [FFI::GDAL::GDAL::DataType] def self.union(gdal_data_type1, gdal_data_type2) FFI::GDAL::GDAL.GDALDataTypeUnion(gdal_data_type1, gdal_data_type2) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.0.0.beta7 | lib/gdal/data_type.rb |
ffi-gdal-1.0.0.beta6 | lib/gdal/data_type.rb |