import ProjectionTransform from 'kqwebmap-project/src_en/projection/ProjectionTransform.js'
ProjectionTransform
ProjectionTransform is a class to transform point coordinates from one coordinate system to another
Constructor Summary
Public Constructor | ||
public |
constructor(sourProjection: String, destProjection: String) constructor |
Method Summary
Public Methods | ||
public |
setSourProjection(sourProjection: String): * set source projection |
|
public |
setdestProjection(destProjection: String): * set dest projection |
|
public |
transformForward(coordinates: Array | Object): Array coordinate transformation forward |
|
public |
transfromInverse(coordinates: Array | Object): Array coordinate transformation inverse |
Public Constructors
Public Methods
public setSourProjection(sourProjection: String): * source
set source projection
Params:
Name | Type | Attribute | Description |
sourProjection | String | source projection(projections can be proj or wkt strings). |
Return:
* | none |
public setdestProjection(destProjection: String): * source
set dest projection
Params:
Name | Type | Attribute | Description |
destProjection | String | dest projection(projections can be proj or wkt strings). |
Return:
* | none |
public transformForward(coordinates: Array | Object): Array source
coordinate transformation forward