public class DatasetBufferAnalystService
extends java.lang.Object
数据集缓冲区分析服务类。
数据集缓冲区分析是指对数据集中符合条件的要素做缓冲区分析。该类负责将客户设置的数据集缓冲区分析参数传递给服务端,并接收服务端返回的数据集缓冲区分析结果数据。 缓冲区分析是 GIS 中基本的空间分析,缓冲区实际上是在基本空间要素周围建立的具有一定宽度的邻近区域。缓冲区分析可以有以下应用,比如确定街道拓宽的范围,确定放射源影响的范围等等。
限定符和类型 | 类和说明 |
---|---|
static class |
DatasetBufferAnalystService.DatasetBufferAnalystEventListener
处理数据集缓冲区分析结果的监听器抽象类。
|
构造器和说明 |
---|
DatasetBufferAnalystService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
DatasetBufferAnalystResult |
getLastResult()
返回数据集缓冲区分析结果。
|
<T> void |
process(DatasetBufferAnalystParameters params, DatasetBufferAnalystService.DatasetBufferAnalystEventListener listener)
根据数据集缓冲区分析与服务端完成异步通讯,即发送分析参数,并通过实现DatasetBufferAnalystEventListener监听器处理分析结果。
|
void |
setTimeout(int timeout)
用户自定义超时时间。
|
public DatasetBufferAnalystService(java.lang.String url)
构造函数。
url
- 数据集缓冲区分析服务地址。如 http://ServerIP:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalystpublic <T> void process(DatasetBufferAnalystParameters params, DatasetBufferAnalystService.DatasetBufferAnalystEventListener listener)
根据数据集缓冲区分析与服务端完成异步通讯,即发送分析参数,并通过实现DatasetBufferAnalystEventListener监听器处理分析结果。
params
- 数据集缓冲区分析参数信息。listener
- 处理分析结果的DatasetBufferAnalystEventListener监听器。public void setTimeout(int timeout)
用户自定义超时时间。
timeout
- 用户自定义超时时间。若用户不设置,则使用默认超时间为5秒。0代表无限,即代表不设置超时限制。单位默认为秒。public DatasetBufferAnalystResult getLastResult()
返回数据集缓冲区分析结果。