class OGR::Point

Public Class Methods

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

Public Instance Methods

get_x() click to toggle source
# File lib/ffi-ogr/point.rb, line 9
def get_x
  FFIOGR.OGR_G_GetX(@ptr, 0)
end
Also aliased as: x
get_y() click to toggle source
# File lib/ffi-ogr/point.rb, line 14
def get_y
  FFIOGR.OGR_G_GetY(@ptr, 0)
end
Also aliased as: y
get_z() click to toggle source
# File lib/ffi-ogr/point.rb, line 19
def get_z
  FFIOGR.OGR_G_GetZ(@ptr, 0)
end
Also aliased as: z
x()
Alias for: get_x
y()
Alias for: get_y
z()
Alias for: get_z