Class: FFI::GDAL::GridDataMetricsOptions

Inherits:
Struct
  • Object
show all
Defined in:
lib/ffi/gdal/grid_data_metrics_options.rb

Overview

FFI structure for GDALGridDataMetricsOptions.

Constant Summary collapse

DEFAULT_LAYOUT =
[
  :radius1, :double,
  :radius2, :double,
  :angle, :double,
  :min_points, CPL::Port.find_type(:GUInt32),
  :no_data_value, :double
].freeze
LAYOUT_VERSIONS =
[
  InternalHelpers::LayoutVersion.new(
    version: "0000000", # Any old GDAL
    layout: DEFAULT_LAYOUT
  ),
  InternalHelpers::LayoutVersion.new(
    version: "3060000", # GDAL 3.6.0
    layout: [
      :n_size_of_structure, :size_t,
      *DEFAULT_LAYOUT,
      :max_points_per_quadrant, CPL::Port.find_type(:GUInt32),
      :min_points_per_quadrant, CPL::Port.find_type(:GUInt32)
    ]
  )
].freeze