Module: NoBrainer::Geo::Base
- Extended by:
- ActiveSupport::Concern
- Included in:
- Circle, LineString, Point, Polygon
- Defined in:
- lib/no_brainer/geo/base.rb
Class Method Summary collapse
Class Method Details
.normalize_geo_options(options) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/no_brainer/geo/base.rb', line 4 def self.() = .symbolize_keys geo_system = .delete(:geo_system) || NoBrainer::Config.[:geo_system] unit = .delete(:unit) || NoBrainer::Config.[:unit] [:unit] = unit if unit && unit.to_s != 'm' [:geo_system] = geo_system if geo_system && geo_system.to_s != 'WGS84' end |