LCCObject::ecef2Prj
Konvertiert ECEF-Koordinaten (Earth-Centered, Earth-Fixed) in das Projektionskoordinatensystem des LCC-Modells.
Das ECEF-Ellipsoid ist WGS84. Informationen zum Projektionskoordinatensystem des LCC-Modells finden Sie in der Methode getProjectionCoordinateSystemInfos.
Versionsanforderung
SDK v0.4.1+
Engine-Unterstützung
CesiumJS
API
LCCObject::ecef2Prj(ecefCoord: Cesium.Cartesian3): Cesium.Cartesian3
Parameter
| Parameter | Typ | Erforderlich | Standard | Beschreibung |
|---|---|---|---|---|
ecefCoord | Cesium.Cartesian3 | Ja | - | ECEF-Koordinaten. |
Rückgabewert
Cesium.Cartesian3 — Projektionskoordinaten.
Verwendungsbeispiel
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);
Hinweise
- Diese Methode muss nach dem Auslösen des Erfolgs-Callbacks von
LCCRender.load()aufgerufen werden.
Verwandte APIs
LCCObject::prj2Ecef()LCCObject::getProjectionCoordinateSystemInfos()