English中文

GeographicProjection

new Cesium.GeographicProjection(ellipsoid)

一个简单的地图投影,其中经度和纬度通过乘以 X 和 Y 线性映射到 X 和 Y A simple map projection where longitude and latitude are linearly mapped to X and Y by multiplying them by the Ellipsoid#maximumRadius。这种投影通常被称为地理投影、等距圆柱投影、等距圆柱投影或板方舟投影。当使用 WGS84 椭球体时,也称为 EPSG:4326。 . This projection is commonly known as geographic, equirectangular, equidistant cylindrical, or plate carrée. When using the WGS84 ellipsoid, it is also known as EPSG:4326.
名称 Name 类型 Type 默认值 Default 说明 Description
ellipsoid Ellipsoid Ellipsoid.default 可选 optional 椭球体。 The ellipsoid.
另见: See:

成员 Members

得到 Gets the Ellipsoid.

方法 Methods

project(cartographic, result)Cartesian3

项目一组 Projects a set of Cartographic 坐标(以弧度为单位)映射到地图坐标(以米为单位)。 X 和 Y 分别是经度和纬度乘以椭球体的最大半径。 Z 是未修改的高度。 coordinates, in radians, to map coordinates, in meters. X and Y are the longitude and latitude, respectively, multiplied by the maximum radius of the ellipsoid. Z is the unmodified height.
名称 Name 类型 Type 说明 Description
cartographic Cartographic 要投影的坐标。 The coordinates to project.
result Cartesian3 可选 optional 将结果复制到的实例。如果该参数未定义,则创建并返回一个新实例。 An instance into which to copy the result. If this parameter is undefined, a new instance is created and returned.
返回: Returns:
投影坐标。如果结果参数不是未定义的,则将坐标复制到那里并返回该实例。否则,将创建并返回一个新实例。 The projected coordinates. If the result parameter is not undefined, the coordinates are copied there and that instance is returned. Otherwise, a new instance is created and returned.
取消投影一组投影 Unprojects a set of projected Cartesian3 坐标,以米为单位,到 coordinates, in meters, to Cartographic 坐标,以弧度为单位。经度和纬度分别是 X 和 Y 坐标除以椭球体的最大半径。高度是未修改的 Z 坐标。 coordinates, in radians. Longitude and Latitude are the X and Y coordinates, respectively, divided by the maximum radius of the ellipsoid. Height is the unmodified Z coordinate.
名称 Name 类型 Type 说明 Description
cartesian Cartesian3 取消投影高度 (z)(以米为单位)的笛卡尔位置。 The Cartesian position to unproject with height (z) in meters.
result Cartographic 可选 optional 将结果复制到的实例。如果该参数未定义,则创建并返回一个新实例。 An instance into which to copy the result. If this parameter is undefined, a new instance is created and returned.
返回: Returns:
未投影的坐标。如果结果参数不是未定义的,则将坐标复制到那里并返回该实例。否则,将创建并返回一个新实例。 The unprojected coordinates. If the result parameter is not undefined, the coordinates are copied there and that instance is returned. Otherwise, a new instance is created and returned.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.