参照简单的
GeographicProjection的几何体切图方案,其中经度和纬度直接映射为 X 和 Y。
这种投影通常被称为地理投影、等角投影、等距圆柱投影或平面投影。
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
|
Members
-
ellipsoid : Ellipsoid
-
获取由此切图方案切图的椭球体。
-
origin : Cartographic
-
获取瓦片的原点位置(WMTS服务),兼容iServer新版本影像范围左上角与切图原点不一致的问题
-
projection : MapProjection
-
获取此切图方案使用的地图投影。
-
rectangle : Rectangle
-
获取此切图方案覆盖的矩形,以弧度表示。
Methods
-
按照指定的详细程度获取 X 方向上瓦片的总数。
Name Type Description levelNumber The level-of-detail. Returns:
The number of tiles in the X direction at the given level. -
按照指定的详细程度获取 Y 方向的瓦片总数。
Name Type Description levelNumber 精细程度。 Returns:
给定水平线上 Y 方向的瓦片数量。 -
positionToTileXY(position, level, result) → Cartesian2
-
计算包含给定投影位置的瓦片的 x、y 坐标。
Name Type Description positionCartographic 位置。 levelNumber 瓦片的精细程度。0 表示最不精细的。 resultCartesian2 optional 要将结果复制到的实例,如果要创建新实例,则未定义。则未定义。 Returns:
指定的 "结果",或包含矩形的新对象。 -
rectangleToNativeRectangle(rectangle, result) → Rectangle
-
将以大地弧度指定的矩形转换为该切图方案的本地坐标系。
Name Type Description rectangleRectangle 要转换的矩形。 resultRectangle optional 要将结果复制到的实例,如果要创建新实例,则未定义。 Returns:
指定的 "结果",如果 "结果 "*未定义,则是一个包含本地矩形的新对象。是未定义的 -
tileXYToNativeRectangle(x, y, level, result) → Rectangle
-
将切图x、y 坐标和水平面转换为以本地坐标表示的矩形。
Name Type Description xNumber 瓦片的整数 x 坐标。 yNumber 瓦片的整数 Y 坐标。 levelNumber 瓦片的精细程度。0 表示最不精细的。 resultObject optional 要将结果复制到的实例,如果要创建新实例,则未定义。则未定义。 Returns:
指定的 "结果",或包含矩形的新对象。 -
tileXYToRectangle(x, y, level, result) → Rectangle
-
将切图x、y 坐标和水平面转换为弧度为单位的地图矩形。
Name Type Description xNumber 瓦片的整数 x 坐标。 yNumber 瓦片的整数 Y 坐标。 levelNumber 瓦片的精细程度。0 表示最不精细的。 resultObject optional Returns:
指定的 "结果",或包含矩形的新对象。
