a
and f
). By setting the value for f
to zero, the ellipsoid becomes a sphere. There are also functions to compute intersections of of rhumb lines. There are also functions to compute the distance between points and polylines, and to characterize spherical polygons; for random sampling on a sphere, and to compute daylength. See the vignette vignette('geosphere')
for examples.
Geographic locations must be specified in latitude and longitude in degrees (NOT radians). Degrees are (obviously) in decimal notation. Thus 12 degrees, 30 minutes, 10 seconds = 12 + 30/60 + 10/3600 = 12.50278 degrees. The Southern and Western hemispheres have a negative sign.
The default unit of distance is meter; but this can be adjusted by supplying a different radius r
to functions.
Directions are expressed in degrees (North = 0 and 360, East = 90, Sout = 180, and West = 270 degrees).
http://williams.best.vwh.net/avform.htm
http://www.movable-type.co.uk/scripts/latlong.html