class GDAL::Transformers::BaseGeneralImageProjectionTransformer
Attributes
c_pointer[R]
@return [FFI::Pointer]
Public Class Methods
function()
click to toggle source
@return [FFI::Function]
# File lib/gdal/transformers/base_general_image_projection_transformer.rb, line 7 def self.function FFI::GDAL::Alg::GenImgProjTransform end
release(pointer)
click to toggle source
@param pointer [FFI::Pointer]
# File lib/gdal/transformers/base_general_image_projection_transformer.rb, line 12 def self.release(pointer) return unless pointer && !pointer.null? FFI::GDAL::Alg.GDALDestroyGenImgProjTransformer(pointer) end
Public Instance Methods
destination_geo_transform=(geo_transform)
click to toggle source
Normally the destination geotransform is extracted from the destination file by the transformer and stored in internal private info. However, sometimes it is inconvenient to have an output file handle with appropriate geotransform information when creating the transformation. For these cases, this function can be used to apply the destination geotransform.
@param [FFI::Pointer, GDAL::GeoTransform
] geo_transform
# File lib/gdal/transformers/base_general_image_projection_transformer.rb, line 40 def destination_geo_transform=(geo_transform) geo_transform_ptr = GDAL._pointer(GDAL::GeoTransform, geo_transform) FFI::GDAL::Alg.GDALSetGenImgProjTransformerDstGeoTransform( @c_pointer, geo_transform_ptr ) end
destroy!()
click to toggle source
# File lib/gdal/transformers/base_general_image_projection_transformer.rb, line 21 def destroy! BaseGeneralImageProjectionTransformer.release(@c_pointer) @c_pointer = nil end
function()
click to toggle source
@return [FFI::Function]
# File lib/gdal/transformers/base_general_image_projection_transformer.rb, line 28 def function self.class.function end
Private Instance Methods
init_pointer(pointer)
click to toggle source
# File lib/gdal/transformers/base_general_image_projection_transformer.rb, line 50 def init_pointer(pointer) @c_pointer = FFI::AutoPointer.new(pointer, BaseGeneralImageProjectionTransformer.method(:release)) end