public class GeometryThiessenAnalystService
extends java.lang.Object
几何对象邻近分析服务类。
该类负责将客户设置的几何对象邻近分析服务参数传递给服务端,并接收服务端返回的邻近分析结果数据。
限定符和类型 | 类和说明 |
---|---|
static class |
GeometryThiessenAnalystService.GeometryThiessenAnalystEventListener
处理几何对象邻近区分析结果的监听器抽象类。
|
构造器和说明 |
---|
GeometryThiessenAnalystService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
ThiessenAnalystResult |
getLastResult()
返回几何对象邻近区分析结果。
|
void |
process(GeometryThiessenAnalystParameters params, GeometryThiessenAnalystService.GeometryThiessenAnalystEventListener listener)
根据几何对象邻近区与服务端完成异步通讯,即发送分析参数,并通过实现GeometryThiessenAnalystEventListener监听器处理分析结果。
|
void |
setTimeout(int timeout)
用户自定义超时时间。
|
public GeometryThiessenAnalystService(java.lang.String url)
构造函数。
url
- 几何对象邻近区分析服务地址。如 http://ServerIP:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalystpublic void process(GeometryThiessenAnalystParameters params, GeometryThiessenAnalystService.GeometryThiessenAnalystEventListener listener)
根据几何对象邻近区与服务端完成异步通讯,即发送分析参数,并通过实现GeometryThiessenAnalystEventListener监听器处理分析结果。
params
- 几何对象邻近区参数信息。listener
- 处理分析结果的GeometryThiessenAnalystEventListener监听器。public void setTimeout(int timeout)
用户自定义超时时间。
timeout
- 用户自定义超时时间。若用户不设置,则使用默认超时间为5秒。0代表无限,即代表不设置超时限制。单位默认为秒。public ThiessenAnalystResult getLastResult()
返回几何对象邻近区分析结果。