无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

超圖iServer rest服務(wù)之feature查詢

2023-02-21 16:28 作者:地理信息技術(shù)雜談  | 我要投稿

在超圖地圖iServer服務(wù)使用過程中,涉及到圖層中的數(shù)據(jù)查詢,提供的是rest服務(wù),通過傳入對應(yīng)的參數(shù),返回數(shù)據(jù)的查詢結(jié)果。

iServer中的查詢feature的服務(wù),對應(yīng)是featureResults,可以使用超圖官網(wǎng)提供的服務(wù)地址進(jìn)行測試,地址如下:

http://support.supermap.com:8090/iserver/services/data-world/rest/data/featureResults


選擇查詢的數(shù)據(jù)集,能夠同時查詢多個數(shù)據(jù)集,查詢模式分為:ID、SQL、BOUNDS、BUFFER等,能夠以字段、空間等形式進(jìn)行數(shù)據(jù)的查詢,各類查詢類型在下邊對應(yīng)的查詢條件也不相同。

在前端開發(fā)中,調(diào)用feature查詢的服務(wù)時,官網(wǎng)提供了調(diào)用的方式,需要引用

SuperMap iClient Classic類庫,下載地址:

https://iclient.supermap.io/web/introduction/classic.html#introduce

具體的代碼調(diào)用方式在github上(以SQL為例):
https://github.com/SuperMap/iClient-JavaScript/blob/master/examples/classic/query_getFeatureBySQL.html同時,也可以不使用官方類庫進(jìn)行調(diào)用,具體的實現(xiàn)方式如下:
//使用axios庫進(jìn)行調(diào)用,post服務(wù)形式

? 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 => {

??? ? ??? ?//返回查詢結(jié)果

? ? ? ? ? ? })?

超圖iServer rest服務(wù)之feature查詢的評論 (共 條)

分享到微博請遵守國家法律
南郑县| 哈密市| 临西县| 垫江县| 景洪市| 夏邑县| 台南市| 保康县| 怀安县| 海林市| 深泽县| 丘北县| 开封市| 定日县| 高安市| 确山县| 深州市| 梁山县| 日照市| 芦溪县| 武宣县| 海南省| 柳州市| 大同市| 通道| 邵阳市| 贞丰县| 边坝县| 梓潼县| 澄城县| 浮梁县| 丰原市| 钟山县| 双辽市| 乐业县| 蓬溪县| 平谷区| 临泉县| 汉源县| 盐山县| 大田县|