class OGR::Polygon25D

NOTE: {{#type}} will return :wkbPolygon (read: 2D instead of 2.5D) until a Z value is set.

Public Class Methods

new(geometry_ptr = nil, spatial_reference: nil) click to toggle source

@param geometry_ptr [FFI::Pointer] @param spatial_reference [OGR::SpatialReference]

Calls superclass method OGR::Polygon::new
# File lib/ogr/geometries/polygon_25d.rb, line 11
def initialize(geometry_ptr = nil, spatial_reference: nil)
  geometry_ptr ||= OGR::Geometry.create(:wkbPolygon25D)
  super(geometry_ptr, spatial_reference: spatial_reference)
end