Transform

坐标转换类

new TS.Transform()

Methods

static TS.Transform.cartesianArrayToCartographicArray(positions)Array.<Cesium.Cartographic>

将大地坐标数组转换成制图坐标数组
Name Type Description
positions Array.<Cesium.Cartesian3>
Returns:

static TS.Transform.cartesianArrayToLonlatArray(positions)Array.<Position>

将大地坐标数组转换成经纬度数组
Name Type Description
positions Array.<Position> 大地坐标数组
Returns:
数组

static TS.Transform.cartesianToCartographic(cartesian)Cesium.Cartographic

将大地坐标转换成制图坐标
Name Type Description
cartesian Cesium.Cartesian3
Returns:

static TS.Transform.cartesianToLonlat(cartesian)Position

世界坐标转经纬度
Name Type Description
cartesian Cesium.Cartesian3 世界坐标
Returns:
经纬度坐标

static TS.Transform.cartographicArrayToCartesianArray(positions)Array.<Cesium.Cartesian3>

将制图坐标数组转换成大地坐标数组
Name Type Description
positions Array.<Cesium.Cartographic>
Returns:

static TS.Transform.cartographicToCartesian(positions)Array.<Cesium.Cartographic>

将制图坐标转换成大地坐标
Name Type Description
positions Array.<Cesium.Cartesian3>
Returns:

static TS.Transform.cartographicToLonlat(position)Position

制图坐标转经纬度
Name Type Description
position Cesium.Cartographic
Returns:

static TS.Transform.lonlatArrayToCartesianArray(positions)Array.<Cesium.Cartesian3>

将经纬度数组转换成大地坐标数组
Name Type Description
positions Array.<Position> 经纬度数组
Returns:
数组

static TS.Transform.lonlatToCartesian(position)Cesium.Cartesian3

将经纬度转换成世界坐标
Name Type Description
position Position 转换的坐标
Returns:
世界坐标

static TS.Transform.lonlatToCartographic(position)Cesium.Cartographic

经纬度转换制图坐标
Name Type Description
position Position 转换的坐标
Returns:
制图坐标

static TS.Transform.lonlatToMercator(position)Position

经纬度转墨卡托
Name Type Description
position Position
Returns:

static TS.Transform.lonlatToWindow(position, viewer)Cesium.Cartesian2

经纬度转屏幕坐标
Name Type Description
position Position
viewer Viewer
Returns:

static TS.Transform.mercatorToLonlat(position)Position

墨卡托转经纬度
Name Type Description
position Position
Returns:

static TS.Transform.windowToLonlat(position, viewer)Position

屏幕坐标转经纬度
Name Type Description
position window.location
viewer Viewer
Returns: