Sha256: 18ef3f5d7ff4b1335ed1e587e0f750f8f656be184997fb6c6c46d1a383af80d9

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

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