Sha256: 8f2138eb40c0d7d85dae8b5ab1f6f83f5d6caa716d4f84181994a619e5cc65db
Contents?: true
Size: 686 Bytes
Versions: 12
Compression:
Stored size: 686 Bytes
Contents
# frozen_string_literal: true require_relative '../geometry_types/container' require_relative '../geometry_types/surface' module OGR class MultiPolygon include OGR::Geometry include GeometryTypes::Container include GeometryTypes::Surface # @param [FFI::Pointer] geometry_ptr def initialize(geometry_ptr = nil, spatial_reference: nil) geometry_ptr ||= OGR::Geometry.create(:wkbMultiPolygon) initialize_from_pointer(geometry_ptr) self.spatial_reference = spatial_reference if spatial_reference end # @return [OGR::Geometry] def union_cascaded build_geometry { FFI::OGR::API.OGR_G_UnionCascaded(@c_pointer) } end end end
Version data entries
12 entries across 12 versions & 1 rubygems