Class: GeoPolygons

GeoPolygons()

new GeoPolygons()

Source:

Methods

(async, static) append(reg) → {Promise}

添加多边形
Parameters:
Name Type Description
reg 待添加的多边形
Source:
Returns:
添加成功返回1,失败返回0
Type
Promise

(async, static) createObj() → {Promise.<GeoPolygons>}

构造一个新的 GeoPolygons 对象
Source:
Returns:
Type
Promise.<GeoPolygons>

(async, static) del(index) → {Promise}

删除多边形
Parameters:
Name Type Description
index 待删除多边形序号
Source:
Returns:
删除成功返回1,失败返回0
Type
Promise

(async, static) distance(type, destGeom) → {Promise}

计算两个几何对象间的距离
Parameters:
Name Type Description
type 距离计算方法
destGeom 第二个几何对象
Source:
Returns:
距离长度
Type
Promise

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

取几何维数
Source:
Returns:
几何维数
Type
Promise

(async, static) getNum() → {Promise}

取多边形数目
Source:
Returns:
多边形的总个数
Type
Promise

(async, static) getPolygon(index) → {Promise.<GeoPolygon>}

取多边形
Parameters:
Name Type Description
index 待取的多边形的序号
Source:
Returns:
获取的多边形对象
Type
Promise.<GeoPolygon>

(async, static) getType() → {Promise}

获取几何对象的类型
Source:
Returns:
几何对象类型
Type
Promise