class Mongoid::Geospatial::Line
Public Instance Methods
to_geo()
click to toggle source
# File lib/mongoid_geospatial/wrappers/georuby.rb, line 22 def to_geo GeoRuby::SimpleFeatures::LineString.from_coordinates(self) end
to_rgeo()
click to toggle source
# File lib/mongoid_geospatial/wrappers/rgeo.rb, line 28 def to_rgeo RGeo::Geographic.spherical_factory.line_string points end