Maps & Surveying
WGS84 Cartesian & Local East-North-Up Calculator
Convert a target geodetic location to Earth-centred XYZ and its displacement in a reference station’s tangent frame.
How the calculation works
Target Earth-centred X = geo_local(origin_lat,origin_lon,origin_h,target_lat,target_lon,target_h,"x") m. Target Earth-centred Y = geo_local(origin_lat,origin_lon,origin_h,target_lat,target_lon,target_h,"y") m. Target Earth-centred Z = geo_local(origin_lat,origin_lon,origin_h,target_lat,target_lon,target_h,"z") m. Local east displacement = geo_local(origin_lat,origin_lon,origin_h,target_lat,target_lon,target_h,"east") m. Local north displacement = geo_local(origin_lat,origin_lon,origin_h,target_lat,target_lon,target_h,"north") m. Local up displacement = geo_local(origin_lat,origin_lon,origin_h,target_lat,target_lon,target_h,"up") m. Straight chord distance = geo_local(origin_lat,origin_lon,origin_h,target_lat,target_lon,target_h,"chord") m.
Worked example
Example inputs — Reference latitude (degrees): 0; Reference longitude (degrees): 0; Reference ellipsoid height (m): 0; Target latitude (degrees): 0; Target longitude (degrees): 0; Target ellipsoid height (m): 100. Expected results — Target Earth-centred X: 6378237 m; Target Earth-centred Y: 0 m; Target Earth-centred Z: 0 m; Local east displacement: 0 m; Local north displacement: 0 m; Local up displacement: 100 m; Straight chord distance: 100 m.
Assumptions and limits
Educational geometry with an explicit coordinate convention. Not a cadastral boundary, certified survey or navigation service. WGS84 a=6378137 m and flattening 1/298.257223563. Heights are ellipsoidal, not elevations above a geoid. ENU is a straight Cartesian difference rotated at the reference station; up difference is not generally the ellipsoid-height difference.
Reference and further reading
Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.
Related calculators
- Spherical Great Circle Distance, Bearings & Interpolation Calculator
- Spherical Constant-Bearing Rhumb Route Calculator
- Great Circle Cross-Track & Along-Track Offset Calculator
- Spherical Cylindrical Map Projection Calculator
- Web Map XYZ Tile, Pixel & Resolution Calculator
Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.