/*** 笛卡尔坐标转WGS84* @param Cartesian3 单个点或点数组*/Cartesian3ToWGS84: (Cartesian3) => {if (!Cartesian3 || !Cartesian3.x) {throw "Error in parameters";}let _cartesian3 = new Cesium.Cartesian3(Cartesian3.x, Cartesian3.y, Cartesian3.z);let _cartographic = Cesium.Cartographic.fromCartesian(_cartesian3);let _lat = Cesium.Math.toDegrees(_cartographic.latitude);let _lng = Cesium.Math.toDegrees(_cartographic.longitude);let _alt = _cartographic.height;return {lng: _lng, lat: _lat, alt: _alt};},
拾取笛卡尔坐标及应用
var cartesian = viewer.scene.camera.pickEllipsoid(movement.position, viewer.scene.globe.ellipsoid);var p = SXYReviewTool.Cartesian3ToWGS84(cartesian);
菜鸟努力中......