com.supermap.web.iServerJava6R.queryServices
public class QueryByDistanceService
继承 QueryByDistanceService Inheritance QueryService Inheritance com.supermap.web.service.ServiceBase

距离查询服务类.

距离查询就是查询距离几何对象一定范围内符合指定条件的地物。对于点几何对象,则查询以该点为圆心,距离为半径的圆内地物;对于线和面几何对象,则查询距离对像边界上一定范围内的地物。
该类负责将距离查询所需参数(QueryByDistanceParameters)传递至服务端,并获取服务端的返回结果。
用户可以通过两种方式获取距离查询结果:
1. 通过 AsyncResponder 类获取(推荐使用);
2. 通过监听 QueryEvent.PROCESS_COMPLETE 事件获取。



公共方法
  方法 定义方
   
QueryByDistanceService(url:String = null)
使用服务器的 URL 参数实例化 QueryByDistanceService 对象。
QueryByDistanceService
  Inherited
processAsync(parameters:QueryParameters, responder:IResponder = null):AsyncToken
根据服务地址与服务端完成异步通讯,即发送查询参数,并获取查询结果。.
QueryService
事件
  事件 Summary 定义方
  Inherited 当与服务端交互失败时触发该事件。 QueryService
  Inherited 当与服务端交互成功时触发该事件。 QueryService
构造函数详细信息
QueryByDistanceService () 构造函数
public function QueryByDistanceService(url:String = null)

使用服务器的 URL 参数实例化 QueryByDistanceService 对象。

参数
url:String (default = null) — 服务访问地址。例如:"http://localhost:8090/iserver/services/map-world/rest/maps/世界地图"。