Sha256: 9dc1c815925f641c0f21858ad7f8b5cb8a0bcf366a7e507136da28df45542010
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
module GDAL module Transformers class GeolocationTransformer # @return [FFI::Function] def self.function FFI::GDAL::Alg::GeoLocTransform end # @return [FFI::Pointer] C pointer to the C geolocation transformer. attr_reader :c_pointer # @param base_dataset [GDAL::Dataset] # @param geolocation_info [Array<String>] # @param reversed [Boolean] def intialize(base_dataset, geolocation_info, reversed = false) base_dataset_ptr = GDAL._pointer(GDAL::Dataset, base_dataset) geolocation_info_ptr = GDAL._string_array_to_pointer(geolocation_info) @c_pointer = FFI::GDAL::Alg.CreateGeoLocTransformer( base_dataset_ptr, geolocation_info_ptr, reversed) end def destroy! return unless @c_pointer FFI::GDAL::Alg.GDALDestroyGeoLocTransformer(@c_pointer) @c_pointer = nil end # @return [FFI::Function] def function self.class.function 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/geolocation_transformer.rb |
ffi-gdal-1.0.0.beta6 | lib/gdal/transformers/geolocation_transformer.rb |