QueryParameter Class

要素服务.QueryParameter(option)

参数查询类

Fx构造函数

# new QueryParameter(option)

Zondy.Service.QueryParameter

参数:
名称 类型 属性 默认值 描述
option Object

属性键值对。

geometry Zondy.Object.Tangram <optional>
null

用于查询的几何描述

where String <optional>
null

条件查询的SQL语句,如果为空,则表示为单一的几何查询;如果取值,表示为几何和条件混合查询

rule Zondy.Service.QueryFeatureRule <optional>
null

几何查询的规则

objectIds String <optional>
null

需要查询的要素OID号,多个间用‘,’分隔;如果此参数有值,查询将默认转化为使用要素ID查询,而忽略条件查询

pageIndex Number <optional>
0

分页号

recordNumber Number <optional>
20

每页记录数

resultFormat String <optional>
json

查询结果的序列化形式(json(默认值)|xml|kml|gml|georss,对于xml,kml,gml或者georss格式的类xml类型将以text文本返回,如需要可调用$.parseXML(text)得到其xml包装)

struct Zondy.Service.QueryFeatureStruct <optional>
new QueryFeatureStruct()

指定查询返回结果所包含的要素信息

orderField String <optional>
new String()

指定查询返回结果的排序字段

proj String <optional>
null

只有图层才支持。设置查询结果中的坐标输出为特定坐标系下的坐标

rtnLabel Boolean <optional>
false

是否计算Label点

fields String <optional>
""

指定结果字段

coordPrecision Number <optional>
2

坐标点的精度

isAsc Boolean <optional>
false

是否升序排列,与orderField配合使用

cursorType String <optional>
“forward”

游标类型 forward为向前光标 其他为向前向后

作者:
  • 基础平台/研究院 陈琪

查看源代码 service/Igserver/MRFS/QueryParameter.js, line 5

继承关系

  • Zondy.Service.QueryParameterBase