new Geometry()
- Source:
Methods
(async, static) calRect() → {Promise.<Rect>}
计算外包围盒
- Source:
Returns:
包围盒信息
- Type
- Promise.<Rect>
(async, static) empty() → {Promise}
清空几何数据
- Source:
Returns:
清空数据成功返回1,失败返回0
- Type
- Promise
(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) length() → {Promise}
获取存储内容长度
- Source:
Returns:
存储长度
- Type
- Promise
(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>