当前位置:网站首页>超图iServer rest服务之feature查询
超图iServer rest服务之feature查询
2022-07-02 02:19:00 【地理信息技术杂谈】
在超图地图iServer服务使用过程中,涉及到图层中的数据查询,提供的是rest服务,通过传入对应的参数,返回数据的查询结果。
http://support.supermap.com:8090/iserver/services/data-world/rest/data/featureResults
选择查询的数据集,能够同时查询多个数据集,查询模式分为:ID、SQL、BOUNDS、BUFFER等,能够以字段、空间等形式进行数据的查询,各类查询类型在下边对应的查询条件也不相同。
在前端开发中,调用feature查询的服务时,官网提供了调用的方式,需要引用
SuperMap iClient Classic类库,下载地址:
https://iclient.supermap.io/web/introduction/classic.html#introduce
具体的代码调用方式在github上(以SQL为例):
https://github.com/SuperMap/iClient-JavaScript/blob/master/examples/classic/query_getFeatureBySQL.html
同时,也可以不使用官方类库进行调用,具体的实现方式如下:
//使用axios库进行调用,post服务形式
axios.request({
url: 'http://support.supermap.com:8090/iserver/services/data-world/rest/data/featureResults.json?returnContent=true',
headers: {
'Content-Type': 'application/json' },
method: 'post',
//查询条件方式,查询过滤的字段
data: {
getFeatureMode: "SQL",
datasetNames:["World:Capitals"],
maxFeatures: 1000,
queryParameter: {
attributeFilter: "SMID<10"}
}
}
).then(res => {
//返回查询结果
})

边栏推荐
- 【带你学c带你飞】2day 第8章 指针(练习8.1 密码开锁)
- How does MySQL solve the problem of not releasing space after deleting a large amount of data
- Sword finger offer 29 Print matrix clockwise
- how to come in an investnent bank team
- The basic steps of using information theory to deal with scientific problems are
- 【带你学c带你飞】4day第2章 用C语言编写程序(练习 2.5 生成乘方表与阶乘表
- Software development life cycle -- waterfall model
- JVM面试篇
- Leetcode face T10 (1-9) array, ByteDance interview sharing
- Types of exhibition items available in the multimedia interactive exhibition hall
猜你喜欢

pytest 测试框架

How to execute an SQL in MySQL

golang---锁

MySQL主从延迟问题怎么解决

Pytest testing framework
![[learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)](/img/39/42b1726e5f446f126a42d7ac673dce.png)
[learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)

Software No.1
![[technology development -21]: rapid overview of the application and development of network and communication technology -1- Internet Network Technology](/img/2d/299fa5c76416f74bd1a693c433dd09.png)
[technology development -21]: rapid overview of the application and development of network and communication technology -1- Internet Network Technology

mysql列转行函数指的是什么

Comparative analysis of MVC, MVP and MVVM, source code analysis
随机推荐
Bash bounce shell encoding
Software No.1
Sword finger offer 29 Print matrix clockwise
Email picture attachment
2022 Q2 - 提昇技能的技巧總結
[question] - why is optical flow not good for static scenes
DNS domain name resolution
2022 Q2 - Summary of skills to improve skills
Opengauss database backup and recovery guide
leetcode2310. 个位数字为 K 的整数之和(中等,周赛)
Cesium dynamic diffusion point effect
【OpenCV】-5种图像滤波的综合示例
Comparative analysis of MVC, MVP and MVVM, source code analysis
Golang lock
Open那啥的搭建文档
剑指 Offer II 031. 最近最少使用缓存
[learn C and fly] 4day Chapter 2 program in C language (exercise 2.5 generate power table and factorial table
How to execute an SQL in MySQL
Sword finger offer 47 Maximum value of gifts
MySQL约束与多表查询实例分析