# Class: Geometry

## Geometry()

#### new Geometry()

Source:
  - Geometry.js, line 10

### Methods

#### (async, static) calRect() → {Promise.<Rect>}

计算外包围盒

Source:
  - Geometry.js, line 32

##### Returns:

包围盒信息

Type
  Promise.<Rect>

#### (async, static) empty() → {Promise}

清空几何数据

Source:
  - Geometry.js, line 19

##### Returns:

清空数据成功返回1，失败返回0

Type
  Promise

#### (async, static) getDimension() → {Promise}

取几何维数

Source:
  - Geometry.js, line 76

##### Returns:

几何维数

Type
  Promise

#### (async, static) isInRect(rect) → {Promise}

是否在矩形内

##### Parameters:

Name | Type | Description
--- | --- | ---
`rect` |  | 待比较的包围盒对象

Source:
  - Geometry.js, line 49

##### Returns:

在包围盒内返回1，不在返回0

Type
  Promise

#### (async, static) isInterRect(rect) → {Promise}

是否和矩形相交

##### Parameters:

Name | Type | Description
--- | --- | ---
`rect` |  | 待比较的包围盒对象

Source:
  - Geometry.js, line 63

##### Returns:

和包围盒相交返回1，不相交返回0

Type
  Promise

#### (async, static) length() → {Promise}

获取存储内容长度

Source:
  - Geometry.js, line 89

##### Returns:

存储长度

Type
  Promise

#### (async, static) transSRS(ptOrigSRef, ptDestSRef) → {Promise.<Geometry>}

投影变换

##### Parameters:

Name | Type | Description
--- | --- | ---
`ptOrigSRef` |  | 原始投影系
`ptDestSRef` |  | 目标投影系

Source:
  - GeometryExp.js, line 21

##### Returns:

投影后的几何对象

Type
  Promise.<Geometry>

#### (async, static) transSRSOfParam(ptOrigSRef, ptDestSRef, param) → {Promise.<Geometry>}

投影变换

##### Parameters:

Name | Type | Description
--- | --- | ---
`ptOrigSRef` |  | 原始投影系
`ptDestSRef` |  | 目标投影系
`param` |  | 椭球坐标系变换参数

Source:
  - GeometryExp.js, line 44

##### Returns:

投影后的几何对象

Type
  Promise.<Geometry>