Home | Trees | Indices | Help |
|
---|
|
Functions to parse and format bearing, lat- and longitudes in various forms of degrees, minutes and seconds.
After (C) Chris Veness 2011-2015 published under the same MIT Licence**, see http://www.movable-type.co.uk/scripts/latlong.html and http://www.movable-type.co.uk/scripts/latlong-vectors.html.
Version: 17.06.04
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Function Details |
Convert bearing to a string.
JS name: toBrng. |
Convert bearing to a string suffixed with compass point.
|
Convert bearing to a compass point.
See Also: Compass rose Example: >>> p = compassPoint(24) # 'NNE' >>> p = compassPoint(24, 1) # 'N' >>> p = compassPoint(24, 2) # 'NE' >>> p = compassPoint(18, 3) # 'NNE' >>> p = compassPoint(12, 4) # 'NbE' >>> p = compassPoint(30, 4) # 'NEbN' |
Convert latitude to a string suffixed with N or S.
JS name: toLat. |
Convert longitude to a string suffixed with E or W.
JS name: toLon. |
Normalize all degree ˚, minute ' and second " symbols in a string to the default symbols °, ′ and ″.
|
Parse a string representing lat-, longitude and height point. The lat- and longitude value must be separated by a separator character. If height is present it must follow, separated by another separator. The lat- and longitude values may be swapped, provided at least one ends with the proper compass direction. See function parseDMS for more details on the forms and symbols accepted.
Example: >>> t = parse3llh('000°00′05.31″W, 51° 28′ 40.12″ N') # (51.4778°N, 000.0015°W, 0) |
Parse a string representing deg°min′sec″ to degrees. This is very flexible on formats, allowing signed decimal degrees, degrees and minutes or degrees minutes and seconds optionally suffixed by compass direction NSEW. A variety of symbols, separators and suffixes are accepted, for example 3° 37′ 09″W. Minutes and seconds may be omitted.
|
Set the default precison for a given F_ form.
|
Convert signed degrees to string, without suffix.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jun 24 11:31:27 2017 | http://epydoc.sourceforge.net |