class Mongoid::Geospatial::Polygon
Public Instance Methods
to_geo()
click to toggle source
# File lib/mongoid_geospatial/wrappers/georuby.rb, line 30 def to_geo GeoRuby::SimpleFeatures::Polygon.from_coordinates(self) end
to_rgeo()
click to toggle source
# File lib/mongoid_geospatial/wrappers/rgeo.rb, line 35 def to_rgeo ring = RGeo::Geographic.spherical_factory.linear_ring points RGeo::Geographic.spherical_factory.polygon ring end