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