This topic describes the ST_ECEFToENU function. This function converts Earth-centered Earth-fixed (ECEF) coordinates to east-north-up (ENU) coordinates.

Syntax

meshgeom ST_ECEFToENU(meshgeom geom, geometry center);

Parameters

ParameterDescription
geomThe meshgeom object.
centerThe centroid of ENU coordinates. The value is in the Point3D format: Longitude and latitude + Altitude (m).

Description

This function projects the model of ECEF coordinates to ENU coordinates.

The center parameter specifies the reference point of ENU coordinates. The value must be in the Point3D format that is supported by EPSG:4326.

For example, 'SRID=4326;POINT(0 0 0)' specifies a reference point whose latitude, longitude, and altitude are 0. The coordinates represent point POINT(0 0).

Examples

SELECT ST_AsText(ST_ECEFToENU('MESHGEOM(PATCH(POINT(6378137 0 0)))', 'SRID=4326;POINT(0 0 100)'));

---------
 MESHGEOM(PATCH(POINT Z (0 0 -100)))