Sha256: d7f69ab6ae39a799f2d8b1843238eaaba5e4cb2dee6b2611511e58c5bf3bc93c

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

require_relative 'base_general_image_projection_transformer'

module GDAL
  module Transformers
    class GeneralImageProjectionTransformer < BaseGeneralImageProjectionTransformer
      # @param source_dataset [GDAL::Dataset, FFI::Pointer]
      # @param destination_dataset [GDAL::Dataset, FFI::Pointer]
      # @param source_wkt [String]
      # @param destination_wkt [String]
      # @param gcp_use_ok [Boolean]
      # @param order [Fixnum]
      def initialize(source_dataset, destination_dataset: nil, source_wkt: nil, destination_wkt: nil,
        gcp_use_ok: false, order: 0)
        source_ptr = GDAL._pointer(GDAL::Dataset, source_dataset)
        dest_ptr = GDAL._pointer(GDAL::Dataset, destination_dataset, false)

        @c_pointer = FFI::GDAL::Alg.GDALCreateGenImgProjTransformer(
          source_ptr,
          source_wkt,
          dest_ptr,
          destination_wkt,
          gcp_use_ok,
          0.0,
          order
        )
        raise if @c_pointer.null?

        super()
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/gdal/transformers/general_image_projection_transformer.rb
ffi-gdal-1.0.0.beta6 lib/gdal/transformers/general_image_projection_transformer.rb