Class: NearestPointAnalysis

Glodon.CIMCube.Analysis. NearestPointAnalysis

紧邻点分析类,根据用户的目标点和被搜索点集合,计算返回离目标点最近的点

new NearestPointAnalysis()

Methods


<static> doAnalysis(target, pointCollection [, ignoreHeight] [, count])

根据用户的目标点和被搜索点集合,计算返回离目标点最近的点
Parameters:
Name Type Argument Default Description
target Object 目标对象
pointCollection Array.<Object> 被搜索点集合,Object格式为{location: {lon: xxx.xx, lat: xxx.xx, height: xx.xx}, properties: {xx:xx, yy: yy ...}}
ignoreHeight Boolean <optional>
true 如果为true则计算距离时忽略高程
count Number <optional>
1 返回个数
Returns:
返回最近的几个点,个数由count参数决定,Object格式为{ distance: xx, point: { location: { lon: xxx.xx, lat: xxx.xx, height: xx.xx }, properties: { xx:xx, yy: yy ... } } }
Type
Array.<Object>