new GeoAnno()
- Source:
Methods
(async, static) calRect() → {Promise.<Rect>}
计算几何注记的外包围盒
- Source:
Returns:
包围盒信息
- Type
- Promise.<Rect>
(async, static) clone(geometry) → {Promise}
拷贝几何信息
Parameters:
| Name | Type | Description |
|---|---|---|
geometry |
被拷贝的几何对象 |
- Source:
Returns:
成功克隆返回1,失败返回0
- Type
- Promise
(async, static) empty() → {Promise}
清空几何数据
- Source:
Returns:
清空数据成功返回1,失败返回0
- Type
- Promise
(async, static) getAnchorDot() → {Promise.<Dot>}
获取定位点
- Source:
Returns:
定位点
- Type
- Promise.<Dot>
(async, static) getDimension() → {Promise}
取注记维数
- Source:
Returns:
注记维数
- Type
- Promise
(async, static) isInRect(rect) → {Promise}
是否在矩形内
Parameters:
| Name | Type | Description |
|---|---|---|
rect |
待比较的包围盒对象 |
- Source:
Returns:
在包围盒内返回1,不在返回0
- Type
- Promise
(async, static) isInterRect(rect) → {Promise}
是否和矩形相交
Parameters:
| Name | Type | Description |
|---|---|---|
rect |
待比较的包围盒对象 |
- Source:
Returns:
和包围盒相交返回1,不相交返回0
- Type
- Promise
(async, static) setAnchorDot(dot) → {Promise.<void>}
设置定位点
Parameters:
| Name | Type | Description |
|---|---|---|
dot |
定位点坐标 |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) transSRS(ptOrigSRef, ptDestSRef) → {Promise.<Geometry>}
投影变换
Parameters:
| Name | Type | Description |
|---|---|---|
ptOrigSRef |
原始投影系 | |
ptDestSRef |
目标投影系 |
- Source:
Returns:
投影后的几何对象
- Type
- Promise.<Geometry>
(async, static) transSRSOfParam(ptOrigSRef, ptDestSRef, param) → {Promise.<Geometry>}
投影变换
Parameters:
| Name | Type | Description |
|---|---|---|
ptOrigSRef |
原始投影系 | |
ptDestSRef |
目标投影系 | |
param |
椭球坐标系变换参数 |
- Source:
Returns:
投影后的几何对象
- Type
- Promise.<Geometry>