Class: Mongoid::Geospatial::Line

Inherits:
GeometryField show all
Defined in:
lib/mongoid_geospatial/fields/line.rb,
lib/mongoid_geospatial/wrappers/rgeo.rb,
lib/mongoid_geospatial/wrappers/georuby.rb

Instance Method Summary collapse

Methods inherited from GeometryField

#bounding_box, #center_point, demongoize, #radius, #radius_sphere

Methods inherited from Array

#to_xy

Instance Method Details

#to_geoObject



37
38
39
# File 'lib/mongoid_geospatial/wrappers/rgeo.rb', line 37

def to_geo
  RGeo::Geographic.spherical_factory.line_string points
end