QueryByDistanceParameters

@interface QueryByDistanceParameters : QueryParameters

Distance 查询参数类。 该类用于设置 Distance 查询的相关参数。

Inherits from

Summary
QueryByDistanceParametersDistance 查询参数类。 该类用于设置 Distance 查询的相关参数。
Properties
geometry{RMPath} 用于查询的地理对象,必设属性。
distance{double} 查询距离,默认为0.0,单位与所查询图层对应的数据集单位相同。 当查找最近地物时,该属性无效。
isNearest{BOOL} 是否为最近距离查询。 建议该属性与 expectCount 属性联合使用。 当该属性为 true 时,即表示查找最近地物,expectCount(继承自 QueryParameters)。 表示期望返回几个最近地物,地物返回的先后顺序按距离从近到远排列。
Constructor
initDistance 查询参数类构造函数。

Properties

geometry

{RMPath} 用于查询的地理对象,必设属性。

distance

{double} 查询距离,默认为0.0,单位与所查询图层对应的数据集单位相同。 当查找最近地物时,该属性无效。

isNearest

{BOOL} 是否为最近距离查询。 建议该属性与 expectCount 属性联合使用。 当该属性为 true 时,即表示查找最近地物,expectCount(继承自 QueryParameters)。 表示期望返回几个最近地物,地物返回的先后顺序按距离从近到远排列。

Constructor

init

Distance 查询参数类构造函数。

Parameters

dis{int} 查询距离。
mGeometry{RMPath} 用于查询的地理对象。
bNearest{BOOL} 是否为最近距离查询。
@interface QueryByDistanceParameters : QueryParameters
Distance 查询参数类。 该类用于设置 Distance 查询的相关参数。
@interface RMPath : RMMapLayer <RMMovingMapLayer>
几何对象图层类,主要用于绘制点、线、多边形。
@interface QueryParameters : NSObject
查询参数基类。 距离查询、SQL 查询、几何地物查询等各自的参数均继承此类。
Close