Sha256: 9191224902b9af99f39921c6f67364e8074ba2eaeefaf95e7329da9504a75890
Contents?: true
Size: 1002 Bytes
Versions: 1
Compression:
Stored size: 1002 Bytes
Contents
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Geodesy representation conversion functions (c) Chris Veness 2002-2010 # - www.movable-type.co.uk/scripts/latlong.html # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Parses string representing degrees/minutes/seconds into numeric degrees # # This is very flexible on formats, allowing signed decimal degrees, or deg-min-sec optionally # suffixed by compass direction (NSEW). A variety of separators are accepted (eg 3ยบ 37' 09"W) # or fixed-width format without separators (eg 0033709W). Seconds and minutes may be omitted. # (Note minimal validation is done). # # @param {String|Number} dmsStr: Degrees or deg/min/sec in variety of formats # @returns {Number} Degrees as decimal number # @throws ArgumentError module GeoUnits autoload :Converter, 'geo_units/converter' autoload :NumericExt, 'geo_units/numeric_ext' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geo_calc-0.7.1 | lib/geo_units.rb |