Skip to main content

LCC for Web Manual · v0.6.3 · Page 13 of 68

LCCObject::ecef2Prj

Converts ECEF (Earth-Centered, Earth-Fixed) coordinates to the projection coordinate system of the LCC model.

The ECEF ellipsoid is WGS84. For projection coordinate system information of the LCC model, refer to the getProjectionCoordinateSystemInfos method.

Version Requirement

SDK v0.4.1+

Engine Support

CesiumJS

API

LCCObject::ecef2Prj(ecefCoord: Cesium.Cartesian3): Cesium.Cartesian3

Parameters

ParameterTypeRequiredDefaultDescription
ecefCoordCesium.Cartesian3Yes-ECEF coordinates.

Return Value

Cesium.Cartesian3 — Projection coordinates.

Usage Example

const pcsInfos = lccObject.getProjectionCoordinateSystemInfos();
const { epsg, offset } = pcsInfos;
const ecefCoord = Cesium.Cartesian3.fromDegrees(116.3976, 39.9055, 10);
const prjPos = lccObject.ecef2Prj(ecefCoord);
console.log('prj Pos: ', prjPos);

Notes

  • This method must be called after the success callback of LCCRender.load() has been triggered.
  • LCCObject::prj2Ecef()
  • LCCObject::getProjectionCoordinateSystemInfos()

XGRIDS documentation, reproduced as published and captured on October 27, 2026. Read this page on docs.xgrids.com

Stuck on a Step?

QRC supports every scanner and software seat it sells. Send us the page you are on and we will walk you through it.

Contact Us
Request a Quote