** Spherical radius.
** Moritz, H. (1980). Geodetic Reference System 1980, by resolution of the XVII General Assembly of the IUGG in Canberra.
** http://en.wikipedia.org/wiki/Earth_radius
+** http://en.wikipedia.org/wiki/World_Geodetic_System
*/
-#define WGS84_RADIUS 6371009.0
-/* For reference, the old value used in distance_sphere was 6370986.884258304 */
-
+#define WGS84_MAJOR_AXIS 6378137.0
+#define WGS84_MINOR_AXIS 6356752.314245
+#define WGS84_RADIUS ((2.0 * WGS84_MAJOR_AXIS + WGS84_MINOR_AXIS ) / 3.0)
/**********************************************************************
** Useful functions for all GEOGRAPHY handlers.