PostgisCustomQueryService Class

PostGIS.PostgisCustomQueryService(option)

Fx构造函数

# new PostgisCustomQueryService(option)

参数:
名称 类型 属性 描述
option PostgisQueryParameter

查询条件

path String <optional>

库名称

queryBody String <optional>

查询sql语句,如:select * from hunan01.dltb2005 where 地类编码 == 1011 limit 1

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

查看源代码 service/datastore/postgis/PostgisCustomQueryService.js, line 4

成员变量

# queryBody

查询sql语句,如: select * from hunan01.dltb2005 where 地类编码 == 1011 limit 1

查看源代码 service/datastore/postgis/PostgisCustomQueryService.js, line 25

方法

# query(onSuccess, onError)

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

参数:
名称 类型 描述
onSuccess function

查询成功回调函数。

onError function

查询失败回调函数。

查看源代码 service/datastore/postgis/PostgisCustomQueryService.js, line 44