Skip to content
TREN
Atlıhan Harita

LCC for Web User Manual · API Reference

LCCObject::ecef2Prj

Chapter 06.3 / 07Manual version v0.6.4English

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()

This chapter is from the official XGRIDS user manual. Official source (opens in a new tab) · Updated:

XGRIDS Türkiye

We're With You During Setup and in the Field

Atlıhan Harita provides training and technical support for device setup, firmware updates, software use, and field applications. Send us your question and our specialist will get back to you.

+90 216 546 0804