public class GeometryOverlayAnalystService
extends java.lang.Object
几何对象叠加分析服务类。
该类负责将客户设置的几何对象叠加分析参数传递给服务端,并接收服务端返回的叠加分析结果数据。 叠加分析是 GIS 中的一项非常重要的空间分析功能。是指在统一空间参考系统下,通过对两个数据集或两个几何对象进行的一系列集合运算,产生新数据集或几何对象的过程。叠加分析广泛应用于资源管理、城市建设评估、国土管理、农林牧业、统计等领域。因此,通过此叠加分析类可实现对空间数据的加工和分析,提取用户需要的新的空间几何信息,并且对数据的属性信息进行处理。
限定符和类型 | 类和说明 |
---|---|
static class |
GeometryOverlayAnalystService.GeometryOverlayAnalystEventListener
处理几何对象叠加分析结果的监听器抽象类。
|
构造器和说明 |
---|
GeometryOverlayAnalystService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
GeometryOverlayAnalystResult |
getLastResult()
返回几何对象叠加分析结果。
|
<T> void |
process(GeometryOverlayAnalystParameters params, GeometryOverlayAnalystService.GeometryOverlayAnalystEventListener listener)
根据几何对象叠加分析与服务端完成异步通讯,即发送分析参数,并通过实现GeometryOverlayAnalystEventListener监听器处理分析结果。
|
void |
setTimeout(int timeout)
用户自定义超时时间。
|
public GeometryOverlayAnalystService(java.lang.String url)
构造函数。
url
- 几何对象叠加分析服务地址。如 http://ServerIP:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalystpublic <T> void process(GeometryOverlayAnalystParameters params, GeometryOverlayAnalystService.GeometryOverlayAnalystEventListener listener)
根据几何对象叠加分析与服务端完成异步通讯,即发送分析参数,并通过实现GeometryOverlayAnalystEventListener监听器处理分析结果。
params
- 几何对象叠加分析参数信息。listener
- 处理分析结果的GeometryOverlayAnalystEventListener监听器。public void setTimeout(int timeout)
用户自定义超时时间。
timeout
- 用户自定义超时时间。若用户不设置,则使用默认超时间为5秒。0代表无限,即代表不设置超时限制。单位默认为秒。public GeometryOverlayAnalystResult getLastResult()
返回几何对象叠加分析结果。