LCCObject::getProjectionCoordinateSystemInfos
獲取 LCC 模型的投影坐標系信息。
包括 EPSG 投影坐標系編碼和基準點投影坐標。
版本要求
SDK v0.4.0+
引擎支持
CesiumJS
API
LCCObject::getProjectionCoordinateSystemInfos(): ProjectionCoordinateSystemInfos
參數
無
返回值
| 屬性 | 類型 | 描述 |
|---|---|---|
epsg | number | 投影坐標系 EPSG 編碼。0 或 1 表示無投影信息。 |
offset | [number, number, number] | 基準點投影坐標。 |
使用示例
const pcsInfos = lccObject.getProjectionCoordinateSystemInfos();
console.log('PCS infos: ', pcsInfos);
// pcsInfos = {
// epsg: 32650,
// offset: [x, y, z]
// }
注意事項
- 此接口需在
LCCRender.load()的成功回調函數觸發後調用。
相關 API
LCCObject::prj2Ecef()LCCObject::ecef2Prj()