Class: GDAL::Transformers::GeneralImageProjectionTransformer2
- Inherits:
-
BaseGeneralImageProjectionTransformer
- Object
- BaseGeneralImageProjectionTransformer
- GDAL::Transformers::GeneralImageProjectionTransformer2
- Defined in:
- lib/gdal/transformers/general_image_projection_transformer2.rb
Instance Attribute Summary collapse
-
#c_pointer ⇒ Object
readonly
Returns the value of attribute c_pointer.
Instance Method Summary collapse
-
#initialize(source_dataset, destination_dataset: nil, **options) ⇒ GeneralImageProjectionTransformer2
constructor
A new instance of GeneralImageProjectionTransformer2.
Methods inherited from BaseGeneralImageProjectionTransformer
#destination_geo_transform=, #destroy!, function, #function, release
Constructor Details
#initialize(source_dataset, destination_dataset: nil, **options) ⇒ GeneralImageProjectionTransformer2
Returns a new instance of GeneralImageProjectionTransformer2.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/gdal/transformers/general_image_projection_transformer2.rb', line 40 def initialize(source_dataset, destination_dataset: nil, **) super() source_ptr = GDAL::Dataset.new_pointer(source_dataset) destination_ptr = GDAL::Dataset.new_pointer(destination_dataset, warn_on_nil: false) = GDAL::Options.pointer() pointer = FFI::GDAL::Alg.GDALCreateGenImgProjTransformer2( source_ptr, destination_ptr, ) raise if pointer.null? init_pointer(pointer) end |
Instance Attribute Details
#c_pointer ⇒ Object (readonly)
Returns the value of attribute c_pointer.
8 9 10 |
# File 'lib/gdal/transformers/general_image_projection_transformer2.rb', line 8 def c_pointer @c_pointer end |