Ellipsoid 3D XYZ−Coordinates Calculator Given the Geographic Coordinates and Elevation of Any Point Relative to the Surface of Any of Several Reference Ellipsoid Models

Latitude (−Neg = South) , Longitude (−Neg = West)
±Deg.dddddddddd
or ±Deg min sec.ssss

SeaLevel Elevation in meters or feet (m, ft)

Select an ellipsoid model to compute the rectangular 3D XYZcoordinates of the point based on the geographic coordinates and elevation given above and the equations following below. 



BASIC ELLIPSOID FORMULAS AND RELATIONSHIPS APPLIED HERE
Given the general static ellipsoid parameters:
 a = Equatorial radius of ellipsoid = Length of semimajor axis
 b = Polar radius of ellipsoid = Length of semiminor axis
 where, a > b
 If ((a = b)), then the form is a perfect sphere, otherwise it is an ellipsoid or oblate
spheroid to some degree, generally wider between two opposite equatorial points
due to a slight equatorial bulge, than between the opposite polar points.
 NOTE:
In the equations, any units of measure may be used for (a, b), such as feet, meters, kilometers, miles, etc., just as long as the same units are used consistently throughout. The values of (x, y, z) will be expressed in the same units as the parameters (a, b).
Computing 3D Rectangular XYZCoordinates For a Point on a Reference Ellipsoid Surface
The reference ellipsoid parameters, location and elevation of the point are:
$a$ = Equatorial radius.
$b$ = Polar radius.
$\varphi $ = Geographic latitude of point on ellipsoid surface.
$\lambda $ = Geographic longtitude of point on ellipsoid surface (Negative = West).
$h$ = Height or elevation of point relative to ellipsoid surface.
From the given parameters, the 3D XYZcoordinates of the point, relative to the surface of the reference ellipsoid, are computed from the equations given below.
Let:
$f=\frac{a\text{}\text{}b}{a}$ = Polar flattening factor of ellipsoid.
$e=\sqrt{1{\left(\frac{b}{a}\right)}^{2}}$
$r=\frac{a}{1\text{}\text{}e\xb2\xb7sin\xb2(\varphi )}$ = Radius vector from ellipsoid center to surface at latitude $\left(\varphi \right)$.
Then:
$x=(h+r)\xb7cos(\varphi )\xb7cos(\lambda )$
$y=(h+r)\xb7cos(\varphi )\xb7sin(\lambda )$
$z=(h+r\xb7(1e\xb2))\xb7sin(\varphi )$

References
Ordinance Survey  A Guide to Coordinate Systems in Great Britain
An introduction to mapping coordinate systems and the use of GNSS datasets with
Ordnance Survey mapping
https://www.ordnancesurvey.co.uk/docs/support/guidecoordinatesystemsgreatbritain.pdf
The Earth Ellipsoid
https://en.wikipedia.org/wiki/Earth_ellipsoid

A PHP Science Program by Jay Tanner  Revised: 2017 November 16 Thursday at 07:52:37 AM GMT 