geodetics-0.1.0: Terrestrial coordinate systems and geodetic calculations.

Geodetics.LatLongParser

Description

The default reader for Geodetic ground positions is flexible but slow. If you are going to read positions in a known format and performance matters then use one of the more specialised parsers here.

Synopsis

# Documentation

Parse an unsigned angle written using degrees, minutes and seconds separated by spaces. All except the last must be integers.

Parse an unsigned angle written using degrees, minutes and seconds with units (° ' "). At least one component must be specified.

Parse an unsigned angle written using degrees and decimal minutes.

Parse an unsigned angle written using degrees and decimal minutes with units (° ')

Parse an unsigned angle written in DDDMMSS.ss format. Leading zeros on the degrees and decimal places on the seconds are optional

Parse an unsigned angle, either in decimal degrees or in degrees, minutes and seconds. In the latter case the unit indicators are optional.

Parse latitude as an unsigned angle followed by N or S

Parse longitude as an unsigned angle followed by E or W.

Parse latitude and longitude as two signed decimal numbers in that order, optionally separated by a comma. Longitudes in the western hemisphere may be represented either by negative angles down to -180 or by positive angles less than 360.

Parse latitude and longitude in any format.