EsSpaceTimeQueryByAgg Class

弹性搜索服务.EsSpaceTimeQueryByAgg(option)

时空聚类服务

Fx构造函数

# new EsSpaceTimeQueryByAgg(option)

Zondy.DataStore.ElasticSearch.EsSpaceTimeQueryByAgg-获取指定范围内的指定时间段的聚类情况

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

属性键值对

indexName String

地址库名称

typeName String <optional>
sptype

Es中type名称,DataStore中为时空库

aggfield String

聚合的几何字段

spatialCondition String

空间范围

timefield String

时间字段

timeCondition String

时间范围

aggGeoFormat Number

聚合返回格式

percision Number

查询精度/对应elasticsearch的percision

作者:
  • 基础平台-潘卓然
See:

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 4

Example
http://192.168.91.125:9093/es/stGeoHashQueryByAgg?
indexName=sp_taxibj_200_2
&typeName=sptype
&aggfield=geometry
&spatialCondition=polygon:29.843798,121.58775;29.843746,121.586464;29.845467,121.5646
&timefield=GPS_DateTime
&timeCondition=1351737960000,1351738020000
&aggGeoFormat=0
&percision=4

成员变量

String

# aggfield

空间字段

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 63

Number

# aggGeoFormat

返回格式

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 97

String

# indexName

地址库名称

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 47

Number

# percision

聚类精度

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 105

String

# serviceUrl

时空聚类查询地址

Default Value:
  • /es/stQueryByAgg

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 39

String

# spatialCondition

空间状态

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 71

Example
polygon:29.843798,121.58775;29.843746,121.586464;29.845467,121.5646
String

# timeCondition

时间状态

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 88

Example
1351737960000,1351738020000
String

# timefield

时间字段

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 80

String

# typeName

Es中type名称,DataStore中为时空库

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 55

方法

# query(onSuccess, onError)

查询函数,向服务器发送请求,返回geosjon格式数据

参数:
名称 类型 描述
onSuccess function

查询成功回调函数。

onError function

查询失败回调函数。

查看源代码 service/datastore/elasticsearch/EsSpaceTimeQueryByAgg.js, line 114