Sha256: 830240e670c34fce4b86219a07b7bd6e1ab97aafd9df3814ee9ea0556541d474

Contents?: true

Size: 469 Bytes

Versions: 3

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require_relative "../geometry_types/container"

module OGR
  class MultiPoint
    include OGR::Geometry
    include GeometryTypes::Container

    # @param [FFI::Pointer] geometry_ptr
    def initialize(geometry_ptr = nil, spatial_reference: nil)
      geometry_ptr ||= OGR::Geometry.create(:wkbMultiPoint)
      initialize_from_pointer(geometry_ptr)
      self.spatial_reference = spatial_reference if spatial_reference
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffi-gdal-1.1.0 lib/ogr/geometries/multi_point.rb
ffi-gdal-1.0.4 lib/ogr/geometries/multi_point.rb
ffi-gdal-1.0.3 lib/ogr/geometries/multi_point.rb