Sha256: 6d951825ef75305922e89e2fe71341eb987e724850c20a37f29da8dbf75f3247

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

require 'ffi'
require_relative '../../ext/ffi_library_function_checks'

module FFI
  module OGR
    module Geocoding
      extend ::FFI::Library
      ffi_lib [::FFI::CURRENT_PROCESS, ::FFI::GDAL.gdal_library_path]

      #------------------------------------------------------------------------
      # Typedefs
      #------------------------------------------------------------------------
      typedef :pointer, :OGRGeocodingSessionH

      #------------------------------------------------------------------------
      # Functions
      #------------------------------------------------------------------------
      attach_function :OGRGeocodeCreateSession, %i[pointer], :OGRGeocodingSessionH
      attach_function :OGRGeocodeDestroySession, %i[OGRGeocodingSessionH], :void
      attach_function :OGRGeocode,
        %i[OGRGeocodingSessionH string pointer pointer],
        FFI::OGR::API.find_type(:OGRLayerH)
      attach_function :OGRGeocodeReverse,
        %i[OGRGeocodingSessionH double double pointer],
        FFI::OGR::API.find_type(:OGRLayerH)
      attach_function :OGRGeocodeFreeResult, [FFI::OGR::API.find_type(:OGRLayerH)], :void
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/ffi/ogr/geocoding.rb
ffi-gdal-1.0.0.beta6 lib/ffi/ogr/geocoding.rb