class OGR::LineString25D

Public Class Methods

create(points) click to toggle source
# File lib/ffi-ogr/line_string_25d.rb, line 3
def self.create(points)
  ls = OGR::Tools.cast_geometry(FFIOGR.OGR_G_CreateGeometry(:line_string_25d))

  points.each do |point|
    ls.add_point(point)
  end

  ls
end