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
Sea-Level Elevation 
in meters or feet (m,   ft)
Select an ellipsoid model to compute the rectangular 3D  XYZ-coordinates 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 semi-major axis
  • b = Polar radius of ellipsoid = Length of semi-minor 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 XYZ-Coordinates 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.
ϕ = Geographic latitude of point on ellipsoid surface.
λ = 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 XYZ-coordinates of the point, relative to the surface
of the reference ellipsoid, are computed from the equations given below.

Let:

f = a     b a = Polar flattening factor of ellipsoid.

e = 1 ( b a ) 2

r = a 1     e ² · s i n ² ( ϕ ) = Radius vector from ellipsoid center to surface at latitude (ϕ).

Then:

x = ( h + r ) · c o s ( ϕ ) · c o s ( λ )

y = ( h + r ) · c o s ( ϕ ) · s i n ( λ )

z = ( h + r · ( 1 e ² ) ) · s i n ( ϕ )


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/guide-coordinate-systems-great-britain.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