Class: GDAL::Transformers::GeneralImageProjectionTransformer3

Inherits:
BaseGeneralImageProjectionTransformer show all
Defined in:
lib/gdal/transformers/general_image_projection_transformer3.rb

Instance Attribute Summary

Attributes inherited from BaseGeneralImageProjectionTransformer

#c_pointer

Instance Method Summary collapse

Methods inherited from BaseGeneralImageProjectionTransformer

#destination_geo_transform=, #destroy!, function, #function, release

Constructor Details

#initialize(source_wkt, source_geo_transform, destination_wkt, destination_geo_transform) ⇒ FFI::Pointer

Parameters:



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/gdal/transformers/general_image_projection_transformer3.rb', line 13

def initialize(source_wkt, source_geo_transform, destination_wkt, destination_geo_transform)
  super()

  source_ptr = GDAL._pointer(GDAL::GeoTransform, source_geo_transform)
  destination_ptr = GDAL._pointer(GDAL::GeoTransform, destination_geo_transform)

  pointer = FFI::GDAL::Alg.GDALCreateGenImgProjTransformer3(
    source_wkt,
    source_ptr,
    destination_wkt,
    destination_ptr
  )

  raise if pointer.null?

  init_pointer(pointer)
end