class Silva::System::En
Location
system representing Ordnance Survey OSGB36 eastings and northings.
Public Instance Methods
to_s()
click to toggle source
# File lib/silva/system/en.rb, line 13 def to_s [easting, northing].to_s end
Private Instance Methods
to_gridref(options = nil)
click to toggle source
# File lib/silva/system/en.rb, line 27 def to_gridref(options = nil) options ||= {} options = options.merge({ :easting => easting, :northing => northing }) System.create(:gridref, options) end
to_osgb36(options = nil)
click to toggle source
# File lib/silva/system/en.rb, line 19 def to_osgb36(options = nil) Silva::Transform.en_to_osgb36(self) end
to_wgs84(options = nil)
click to toggle source
# File lib/silva/system/en.rb, line 23 def to_wgs84(options = nil) Silva::Transform.osgb36_to_wgs84(to_osgb36) end