Sha256: 7b9b79f222ec4c2d2acf2617d9567639087b619370e5d2e6d964b5ca3f3ba05f
Contents?: true
Size: 471 Bytes
Versions: 3
Compression:
Stored size: 471 Bytes
Contents
require 'georuby' # require 'mongoid_geospatial/extensions/georuby' module Mongoid module Geospatial class Point def to_geo GeoRuby::SimpleFeatures::Point.from_x_y(x, y) end end class Line < Array def to_geo GeoRuby::SimpleFeatures::LineString.from_array(self) end end class Polygon < GeometryField def to_geo GeoRuby::SimpleFeatures::Polygon.from_array(self) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems