LCCObject::getProjectionCoordinateSystemInfos
Gets the projection coordinate system information of the LCC model.
Includes the EPSG projection coordinate system code and the origin point's projection coordinates.
Version Requirement
SDK v0.4.0+
Engine Support
CesiumJS
API
LCCObject::getProjectionCoordinateSystemInfos(): ProjectionCoordinateSystemInfos
Parameters
None
Return Value
| Property | Type | Description |
|---|---|---|
epsg | number | Projection coordinate system EPSG code. 0 or 1 indicates no projection information. |
offset | [number, number, number] | Origin point projection coordinates. |
Usage Example
const pcsInfos = lccObject.getProjectionCoordinateSystemInfos();
console.log('PCS infos: ', pcsInfos);
// pcsInfos = {
// epsg: 32650,
// offset: [x, y, z]
// }
Notes
- This method must be called after the success callback of
LCCRender.load()has been triggered.
Related APIs
LCCObject::prj2Ecef()LCCObject::ecef2Prj()