Sha256: 6038c57150e2f04cb50365612f3a1b84ab0c03573c15bbea2e68b1b56d907517

Contents?: true

Size: 499 Bytes

Versions: 3

Compression:

Stored size: 499 Bytes

Contents

# frozen_string_literal: true

require_relative "polygon"

module OGR
  # NOTE: {{#type}} will return :wkbPolygon (read: 2D instead of 2.5D) until a Z
  # value is set.
  class Polygon25D < Polygon
    # @param geometry_ptr [FFI::Pointer]
    # @param spatial_reference [OGR::SpatialReference]
    def initialize(geometry_ptr = nil, spatial_reference: nil)
      geometry_ptr ||= OGR::Geometry.create(:wkbPolygon25D)
      super(geometry_ptr, spatial_reference: 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_25d.rb
ffi-gdal-1.0.4 lib/ogr/geometries/polygon_25d.rb
ffi-gdal-1.0.3 lib/ogr/geometries/polygon_25d.rb