Sha256: b7bac84a60ea3a18b6a4a2ac4c69e93706eb807133667f4243558c0f233ca9ad

Contents?: true

Size: 951 Bytes

Versions: 9

Compression:

Stored size: 951 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_general_image_projection_transformer'

module GDAL
  module Transformers
    class GeneralImageProjectionTransformer3 < BaseGeneralImageProjectionTransformer
      # @param source_wkt [String]
      # @param source_geo_transform [GDAL::GeoTransform, FFI::Pointer]
      # @param destination_wkt [String]
      # @param destination_geo_transform [GDAL::GeoTransform, FFI::Pointer]
      # @return [FFI::Pointer]
      def initialize(source_wkt, source_geo_transform, destination_wkt, destination_geo_transform)
        source_ptr = GDAL._pointer(GDAL::GeoTransform, source_geo_transform)
        destination_ptr = GDAL._pointer(GDAL::GeoTransform, destination_geo_transform)

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

        super()
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta16 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta15 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta14 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta13 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta12 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta11 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta10 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta9 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta8 lib/gdal/transformers/general_image_projection_transformer3.rb