Sha256: 868fc7e6af80d8404ec4a6ac94a4632b02e585a0323799e34d37c2320556875a

Contents?: true

Size: 605 Bytes

Versions: 9

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true

require_relative 'line_string'

module OGR
  # NOTE: {{#type}} will return :wkbLineString (read: 2D instead of 2.5D) until
  # a Z value is set.
  class LineString25D < LineString
    def initialize(geometry_ptr = nil, spatial_reference: nil)
      geometry_ptr ||= OGR::Geometry.create(:wkbLineString25D)
      super(geometry_ptr, spatial_reference: spatial_reference)
    end

    # Adds a point to a LineString or Point geometry.
    #
    # @param x [Float]
    # @param y [Float]
    # @param z [Float]
    def add_point(x, y, z)
      super(x, y, z)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta16 lib/ogr/geometries/line_string_25d.rb
ffi-gdal-1.0.0.beta15 lib/ogr/geometries/line_string_25d.rb
ffi-gdal-1.0.0.beta14 lib/ogr/geometries/line_string_25d.rb
ffi-gdal-1.0.0.beta13 lib/ogr/geometries/line_string_25d.rb
ffi-gdal-1.0.0.beta12 lib/ogr/geometries/line_string_25d.rb
ffi-gdal-1.0.0.beta11 lib/ogr/geometries/line_string_25d.rb
ffi-gdal-1.0.0.beta10 lib/ogr/geometries/line_string_25d.rb
ffi-gdal-1.0.0.beta9 lib/ogr/geometries/line_string_25d.rb
ffi-gdal-1.0.0.beta8 lib/ogr/geometries/line_string_25d.rb