com.supermap.analyst.spatialanalyst
类 ComputeDistanceResult

java.lang.Object
  继承者 com.supermap.analyst.spatialanalyst.ComputeDistanceResult

public class ComputeDistanceResult
extends java.lang.Object

距离计算结果类。该类用于返回最近距离计算和范围距离计算的结果,包括“被计算对象”的 SMID、“参考对象”的 SMID 数组以及距离值。


方法摘要
 double getDistance()
          返回距离值,即 getSourceGeometryID 方法返回的“被计算对象”与 getReferenceGeometryIDs 方法返回的“参考对象”的距离。
 int[] getReferenceGeometryIDs()
          返回“参考对象”的 SMID 数组。
 int getSourceGeometryID()
          返回“被计算对象”的 SMID。
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getSourceGeometryID

public int getSourceGeometryID()
返回“被计算对象”的 SMID。

返回:
“被计算对象”的 SMID。

getReferenceGeometryIDs

public int[] getReferenceGeometryIDs()
返回“参考对象”的 SMID 数组。对于最近距离计算,该数组中的“参考对象”与“被计算对象”具有最近距离。

返回:
“参考对象”的 SMID 数组。

getDistance

public double getDistance()
返回距离值,即 getSourceGeometryID 方法返回的“被计算对象”与 getReferenceGeometryIDs 方法返回的“参考对象”的距离。单位与参考记录集所属数据集的单位一致。

返回:
最近距离值。