当前位置:网站首页>超图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 => {
//返回查询结果
})
边栏推荐
- Flutter un élément au milieu, l'élément le plus à droite
- What style of Bluetooth headset is easy to use? High quality Bluetooth headset ranking
- Sword finger offer II 031 Least recently used cache
- 【带你学c带你飞】day 5 第2章 用C语言编写程序(习题2)
- [deep learning] Infomap face clustering facecluster
- How does MySQL solve the problem of not releasing space after deleting a large amount of data
- es面试题
- 附加:信息脱敏;
- MySQL operates the database through the CMD command line, and the image cannot be found during the real machine debugging of fluent
- [learn C and fly] 4day Chapter 2 program in C language (exercise 2.5 generate power table and factorial table
猜你喜欢
AR增强现实可应用的场景
leetcode2311. Longest binary subsequence less than or equal to K (medium, weekly)
Selection of field types for creating tables in MySQL database
OpenCASCADE7.6编译
【带你学c带你飞】2day 第8章 指针(练习8.1 密码开锁)
【OpenCV】-5种图像滤波的综合示例
【读书笔记】程序员修炼手册—实战式学习最有效(项目驱动)
Opengauss database backup and recovery guide
CVPR 2022 | Dalian Institute of technology proposes a self calibration lighting framework for low light level image enhancement of real scenes
Query word weight, search word weight calculation
随机推荐
How does MySQL solve the problem of not releasing space after deleting a large amount of data
MySQL中一条SQL是怎么执行的
How to use redis ordered collection
C write TXT file
【读书笔记】程序员修炼手册—实战式学习最有效(项目驱动)
花一个星期时间呕心沥血整理出高频软件测试/自动化测试面试题和答案
[technology development -21]: rapid overview of the application and development of network and communication technology -1- Internet Network Technology
Redis有序集合如何使用
How to batch add background and transition effects to videos?
Flutter un élément au milieu, l'élément le plus à droite
Sword finger offer II 031 Least recently used cache
Email picture attachment
How to solve MySQL master-slave delay problem
Medical management system (C language course for freshmen)
Calculation (computer) code of suffix expression
Es interview questions
MySQL operates the database through the CMD command line, and the image cannot be found during the real machine debugging of fluent
leetcode373. Find and minimum k-pair numbers (medium)
es面試題
C return multiple values getter setter queries the database and adds the list return value to the window