当前位置:网站首页>超图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 => {
//返回查询结果
})

边栏推荐
- Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
- 2022 Q2 - Summary of skills to improve skills
- As a software testing engineer, will you choose the bank post? Laolao bank test post
- [pit] how to understand "parameter fishing"
- MySQL中一条SQL是怎么执行的
- JVM面试篇
- Pytest testing framework
- The wave of layoffs in big factories continues, but I, who was born in both non undergraduate schools, turned against the wind and entered Alibaba
- Kibana controls es
- C write TXT file
猜你喜欢

大厂裁员潮不断,双非本科出身的我却逆风翻盘挺进阿里
![[opencv] - comprehensive examples of five image filters](/img/c7/aec9f2e03a17c22030d7813dd47c48.png)
[opencv] - comprehensive examples of five image filters

Leetcode face T10 (1-9) array, ByteDance interview sharing
![[liuyubobobo play with leetcode algorithm interview] [00] Course Overview](/img/1c/c8cab92c74b6658c3ef608c5255f1f.png)
[liuyubobobo play with leetcode algorithm interview] [00] Course Overview

Selection of field types for creating tables in MySQL database

剑指 Offer 62. 圆圈中最后剩下的数字

leetcode373. Find and minimum k-pair numbers (medium)

An analysis of circuit for quick understanding

leetcode373. 查找和最小的 K 对数字(中等)

This is the report that leaders like! Learn dynamic visual charts, promotion and salary increase are indispensable
随机推荐
Oracle creates a user with read-only permission in four simple steps
Open那啥的搭建文档
Iterative unified writing method of binary tree
How does MySQL solve the problem of not releasing space after deleting a large amount of data
leetcode2310. The one digit number is the sum of integers of K (medium, weekly)
how to come in an investnent bank team
Sword finger offer 62 The last remaining number in the circle
2022安全员-C证考试题及模拟考试
【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)
研发中台拆分过程的一些心得总结
Data analysis on the disaster of Titanic
Types of exhibition items available in the multimedia interactive exhibition hall
[reading notes] programmer training manual - practical learning is the most effective (project driven)
Selection of field types for creating tables in MySQL database
Flutter un élément au milieu, l'élément le plus à droite
2022 Q2 - résumé des compétences pour améliorer les compétences
剑指 Offer 42. 连续子数组的最大和
Opencascade7.6 compilation
STM32F103——两路PWM控制电机
Design and implementation of key value storage engine based on LSM tree