Class: Mongoid::Geospatial::Line
- Inherits:
-
GeometryField
- Object
- Array
- GeometryField
- Mongoid::Geospatial::Line
- 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
Instance Method Details
#to_geo ⇒ Object
37 38 39 |
# File 'lib/mongoid_geospatial/wrappers/rgeo.rb', line 37 def to_geo RGeo::Geographic.spherical_factory.line_string points end |