Sha256: eb7507cdf2d93b3241de53691c5a0dce914a724ed24d79c54af80f63fcf56ae0

Contents?: true

Size: 911 Bytes

Versions: 4

Compression:

Stored size: 911 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta6 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta5 lib/gdal/transformers/general_image_projection_transformer3.rb
ffi-gdal-1.0.0.beta4 lib/gdal/transformers/general_image_projection_transformer3.rb