Class: Cartesian

latlon-ellipsoidal~Cartesian

Converts ECEF (earth-centered earth-fixed) cartesian coordinates to LatLon points, applies Helmert transformations.

Constructor

new Cartesian(x, y, z)

Creates cartesian coordinate representing ECEF (earth-centric earth-fixed) point.
Parameters:
Name Type Description
x number x coordinate in metres (=> 0°N,0°E).
y number y coordinate in metres (=> 0°N,90°E).
z number z coordinate in metres (=> 90°N).
Source:

Methods

applyTransform(t)

Applies Helmert (seven-parameter) transformation to ‘this’ coordinate using transform parameters t.
Parameters:
Name Type Description
t LatLon.datums.transform Transformation to apply to this coordinate.
Source:

toLatLon(datumopt)

Converts ‘this’ (geocentric) cartesian (x/y/z) coordinate to (ellipsoidal geodetic) latitude/longitude point on specified datum. Uses Bowring’s (1985) formulation for μm precision in concise form.
Parameters:
Name Type Attributes Default Description
datum LatLon.datums <optional>
WGS84 Datum to use when converting point.
Source:

toString(dpopt) → {string}

Returns a string representation of ‘this’ cartesian point.
Parameters:
Name Type Attributes Default Description
dp number <optional>
0 Number of decimal places to use.
Source:
Returns:
Comma-separated latitude/longitude.
Type
string