import ProjectionTransform from 'kqwebmap-project/src/projection/ProjectionTransform.js'ProjectionTransform
坐标转换类(将坐标从一种投影转换到另一种投影)
Constructor Summary
| Public Constructor | ||
| public |
constructor(sourProjection: String, destProjection: String) 构造函数 |
|
Method Summary
| Public Methods | ||
| public |
setDestProjection(destProjection: String): * 设置目标投影 |
|
| public |
setSourProjection(sourProjection: String): * 设置原始投影 |
|
| public |
transformForward(coordinates: Array | Object): Array 坐标转换 |
|
| public |
transfromInverse(coordinates: Array | Object): Array 坐标反转 |
|
Public Constructors
Public Methods
public setDestProjection(destProjection: String): * source
设置目标投影
Params:
| Name | Type | Attribute | Description |
| destProjection | String | 目标投影(投影可以是proj或wkt格式的字符串) |
Return:
| * | none |
public setSourProjection(sourProjection: String): * source
设置原始投影
Params:
| Name | Type | Attribute | Description |
| sourProjection | String | 原始投影(投影可以是proj或wkt格式的字符串) |
Return:
| * | none |
Reference
Source