Sha256: 25c3c6a10cc1a2cecb42726fa5de8c49bc47ff4360de23cf85d89f9ee3b0a0b0

Contents?: true

Size: 543 Bytes

Versions: 3

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

require_relative "../geometry_types/container"
require_relative "../geometry_types/surface"

module OGR
  class Polygon
    include OGR::Geometry
    include GeometryTypes::Surface
    include GeometryTypes::Container

    # @param [FFI::Pointer] geometry_ptr
    def initialize(geometry_ptr = nil, spatial_reference: nil)
      geometry_ptr ||= OGR::Geometry.create(:wkbPolygon)
      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/polygon.rb
ffi-gdal-1.0.4 lib/ogr/geometries/polygon.rb
ffi-gdal-1.0.3 lib/ogr/geometries/polygon.rb