react-native-mobilex 开发文档
Preparing search index...
ICRSTranslator
Type Alias ICRSTranslator
坐标转换模块
type
ICRSTranslator
=
{
convertGeometry
<
T
extends
IGeoLine
|
IGeoPoint
|
IGeoRegion
|
IGeoText
>
(
geometry
:
T
,
sourceCRS
:
ICRS
,
targetCRS
:
ICRS
,
)
:
Promise
<
T
>
;
convertPoint2Ds
(
points
:
IPoint2D
[]
,
sourceCRS
:
ICRS
,
targetCRS
:
ICRS
,
)
:
IPoint2D
[]
;
}
Index
Methods
convert
Geometry
convert
Point2
Ds
Methods
convert
Geometry
convertGeometry
<
T
extends
IGeoLine
|
IGeoPoint
|
IGeoRegion
|
IGeoText
>
(
geometry
:
T
,
sourceCRS
:
ICRS
,
targetCRS
:
ICRS
,
)
:
Promise
<
T
>
几何对象坐标转换
Type Parameters
T
extends
IGeoLine
|
IGeoPoint
|
IGeoRegion
|
IGeoText
Parameters
geometry
:
T
要转换的几何对象,支持点,线面及文本对象
sourceCRS
:
ICRS
原坐标系
targetCRS
:
ICRS
目标坐标系
Returns
Promise
<
T
>
转换为目标坐标系的几何对象
convert
Point2
Ds
convertPoint2Ds
(
points
:
IPoint2D
[]
,
sourceCRS
:
ICRS
,
targetCRS
:
ICRS
,
)
:
IPoint2D
[]
二维点串坐标转换
Parameters
points
:
IPoint2D
[]
要转换的二维点串
sourceCRS
:
ICRS
原坐标系
targetCRS
:
ICRS
目标坐标系
Returns
IPoint2D
[]
转换为目标坐标系的二维点串
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
convert
Geometry
convert
Point2
Ds
react-native-mobilex 开发文档
Loading...
坐标转换模块