Class: Mongoid::Geospatial::Polygon
- Inherits:
-
GeometryField
- Object
- Array
- GeometryField
- Mongoid::Geospatial::Polygon
- Defined in:
- lib/mongoid_geospatial/wrappers/rgeo.rb,
lib/mongoid_geospatial/fields/polygon.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
44 45 46 47 |
# File 'lib/mongoid_geospatial/wrappers/rgeo.rb', line 44 def to_geo ring = RGeo::Geographic.spherical_factory.linear_ring points RGeo::Geographic.spherical_factory.polygon ring end |