Sha256: 9f714c85bbd5164a5e1374d8b6f210cdbe5e9c289950d559dcd76f903ca61322

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

require "ogr/geometry"

module OGR
  class Point
    module Extensions
      # Wrapper around {#point_value} to provide API parity with other geometries
      # that can have multiple points.
      #
      # @return [Array<Array<Float, Float>>]
      def point_values
        [point]
      end
    end
  end
end

OGR::Point.include(OGR::Point::Extensions)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffi-gdal-1.1.0 lib/ogr/extensions/geometries/point/extensions.rb
ffi-gdal-1.0.4 lib/ogr/extensions/geometries/point/extensions.rb
ffi-gdal-1.0.3 lib/ogr/extensions/geometries/point/extensions.rb