EsGeocodeService Class

弹性搜索服务.EsGeocodeService(gdbp, option)

Fx构造函数

# new EsGeocodeService(gdbp, option)

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

发布在igs上的pg图层gdbp地址,可以从中解析libName(数据库名)、schemas(工作空间名)、tableName(表名)

option EsGeocodeParameter

查询条件

includeProperites Boolean <optional>
true

查询结果中是否包含属性

where String <optional>

属性条件 (例如:id>5,id<10)

fields String <optional>

统计计算中用于分组字段名列表

geometry String <optional>

几何信息,圆、多边形等

geoFormat String <optional>
"wkt"

几何类型,wkt、wkb、geojson、自定义等

sref String <optional>

动态投影坐标系 ID,支持 MapGIS 和 EPSG 标准编号,其中 MapGIS 只支持当前库中自带的坐标系的 ID,EPSG 标准请 使用 EPSG:4326 格式,若指定了该参数,则系统认为 geometry 的坐标系为此坐标系

作者:
  • 创新中心-潘卓然

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

成员变量

String

# fields

统计计算中用于分组字段名列表

查看源代码 service/datastore/elasticsearch/EsGeocodeService.js, line 33

String

# geoFormat

几何类型,wkt、wkb、geojson、自定义等

查看源代码 service/datastore/elasticsearch/EsGeocodeService.js, line 45

String

# geometry

几何信息,圆、多边形等

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

Boolean

# includeProperites

查询结果中是否包含属性

Default Value:
  • true

查看源代码 service/datastore/elasticsearch/EsGeocodeService.js, line 20

String

# sref

动态投影坐标系 ID,支持 MapGIS 和 EPSG 标准编号, 其中 MapGIS 只支持当前库中自带的坐标系的 ID,EPSG 标准请 使用 EPSG:4326 格式, 若指定了该参数,则系统认为 geometry 的坐标系为此坐标系

查看源代码 service/datastore/elasticsearch/EsGeocodeService.js, line 51

String

# where

属性条件 (例如:id>5,id<10)

查看源代码 service/datastore/elasticsearch/EsGeocodeService.js, line 27

方法

# query(onSuccess, onError)

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

参数:
名称 类型 描述
onSuccess function

查询成功回调函数。

onError function

查询失败回调函数。

查看源代码 service/datastore/elasticsearch/EsGeocodeService.js, line 60