摘要: 提出一種RESTful Web API服務(wù)架構(gòu)的技術(shù)方案,用以解決海量遙感影像的檢索問題,。首先研究了RESTful架構(gòu)相對于傳統(tǒng)Web架構(gòu)的優(yōu)勢,,它的使用可充分實(shí)現(xiàn)前后端分離的思想;然后選取Spring相關(guān)框架作為RESTful Web API服務(wù)架構(gòu)的實(shí)現(xiàn)方式,,并使用經(jīng)典的MVC分層結(jié)構(gòu)來設(shè)計(jì),;最后引用數(shù)據(jù)庫拓展Postgis處理空間數(shù)據(jù)的能力,完善服務(wù)的空間檢索功能,,提出空間查詢的交互方式和服務(wù)的應(yīng)用場景,。結(jié)果表明,該架構(gòu)應(yīng)用在遙感影像檢索系統(tǒng)中,,可以使其更加簡潔和高效,。
中圖分類號(hào): TN06 文獻(xiàn)標(biāo)識(shí)碼: A DOI:10.16157/j.issn.0258-7998.200249 中文引用格式: 王昊,特日根. 基于RESTful Web API服務(wù)架構(gòu)的遙感影像檢索技術(shù)研究[J].電子技術(shù)應(yīng)用,,2021,,47(5):82-85,91. 英文引用格式: Wang Hao,,Te Rigen. Research on remote sensing image retrieval based on RESTful Web API service architecture[J]. Application of Electronic Technique,,2021,,47(5):82-85,91.
Research on remote sensing image retrieval based on RESTful Web API service architecture
Wang Hao1,,2,,Te Rigen1,2,,3
1.Changguang Satellite Technology Co.,,Ltd.,Changchun 130000,,China,; 2.Key Laboratory of Satellite Remote Sensing Application Technology in Jilin Province,Changchun 130000,,China,; 3.Changchun Institute of Optics,Fine Mechanics and Physics,Chinese Academy of Sciences,,Changchun 130000,,China
Abstract: A technical scheme of RESTful Web API service architecture is presented to solve the problem of retrieving massive remote sensing images.Firstly, the advantages of RESTful architecture over traditional Web architecture are studied, and its use fully implements the idea of front-end and back-end separation. Then Spring related framework is taken as the implementation of RESTful Web API service architecture, and the classic MVC hierarchy is used to design.Finally, it refers to Postgis′s ability to process spatial data, improves the spatial retrieval function of services, and puts forward the interactive mode of spatial query and the scenario of application of services.The results show that this architecture can be used in remote sensing image retrieval system to make it more concise and efficient.
Key words : RESTful Web API;remote sensing image retrieval,;Postgis,;front and back end separation;Spring framework
在傳統(tǒng)的Web服務(wù)架構(gòu)中,數(shù)據(jù)的操作和頁面的渲染都由服務(wù)端負(fù)責(zé)處理,,這種架構(gòu)的缺點(diǎn)較為明顯,,就是拓展和維護(hù)的成本較高,開發(fā)者需要同時(shí)擁有兩種差別較大的技術(shù)儲(chǔ)備,。所以后來出現(xiàn)了將兩者解耦的架構(gòu)技術(shù)——前后端分離技術(shù):兩者通過約定API和數(shù)據(jù)格式進(jìn)行交互,,前端僅僅關(guān)心頁面的渲染,后端則負(fù)責(zé)數(shù)據(jù)的操作,。自從表現(xiàn)層狀態(tài)轉(zhuǎn)化(Representational State Transfer,,REST)這一概念被提出后,,被廣泛認(rèn)可為Web應(yīng)用架構(gòu)設(shè)計(jì)應(yīng)遵守的指導(dǎo)原則[2]。而RESTful是使用REST概念構(gòu)造而來的,,是用于規(guī)范API的一種約束,,遵循其原則便可以設(shè)計(jì)出易于理解、方便調(diào)用的API,。
將RESTful Web API作為主要的后端服務(wù)架構(gòu)應(yīng)用于改善傳統(tǒng)遙感影像檢索的體驗(yàn),,無論在科研還是商業(yè)化的應(yīng)用中,都可以提高當(dāng)前海量遙感數(shù)據(jù)的共享水平和效率,。