斯潘8
span4
INSPIRE,或者,欧洲空间信息基础设施是欧盟的一项指令,旨在为欧盟数据创建空间数据基础设施,to enable policy making across boundaries and improve public access to spatial information.开放标准(如OGC Web服务)用于促进Inspire数据的交换。For more information,please visit theINSPIRE website.
With FME,可以构建包含inspire数据的各种Web服务。Building a new web service requires 3 main components:
FME可以作为WMS如何
The service broker approach can be applied to other web services,包括WFS,WCS,WPSWMTS,如果您还了解Web服务协议客户机/服务器规范以及实现其他Web服务所必需的工作区配置需求,那么就需要SOS。
本演示中概述的方法,以及在INSPIRE WFS demo,provide the user with a starting point to configure,customize,更新和扩展他们的Web服务。这种方法也可以应用于其他类型的基于REST的Web服务,而不是OGC或Inspire应用程序。
The demo outlined in this article has been deployed on FME Cloud so is available to view using any WMS Client,包括FME数据检查员。
使用FME创建WMS时,two workspaces are required,这是因为FME只允许每个工作区使用一种类型的MIME编码,而对于WMS,消息处理(getcapabilities)和数据流(getmap)响应分别是application/xml和image/png。As these two responses cannot coexist in a single workspace,two workspaces are used.
Note: The key to getting this to work is to edit the GetCapabilities document so that each service request calls the appropriate workspace.这种方法的一个主要优点是Web服务组件是以更模块化的方式定义的,每个请求类型一个工作区,更容易理解,诊断问题,和维护。
“导航器”窗口中的编写器MIME类型
The INSPIRE_WMS_GetCapabilities workspace listens for GetCapabilities requests and transmits the appropriate response in the form of application/XML documents.
处理获取请求
Note: URL parameters are automatically mapped to workspace parameters of the same name.
响应:生成getCapabilities
响应:错误处理
getCapabilities工作区
inspire_wms_getmap工作区解析getmap请求并以image/png数据的形式传输实际的wms数据响应。
处理获取请求
注意:文本行输入仅用于生成驱动翻译的记录。All the relevant request information is read in via parameters so we could just as easily parse the input URL if we wanted.
Response: Generate GetMap
注:目前,每个请求仅支持一个层。Multiple layers could be supported,但需要进行一些与多层选择相关的列表处理。
Note: Under the Writer Format Parameters,世界文件和选项卡文件生成设置为“否”,as Data Streaming workspaces can only produce one file,否则结果将被压缩。
响应:错误处理
GetMap Workspace
1。除非您在本地运行FME服务器,打开getcapabilities.xml:
Sample of GetCapabilities.xml
2。打开两个工作区并在本地测试运行它们——在发布到FME服务器之前,最好测试工作区是否按预期运行。In the GetMap workspace also check the FeatureReaders in the CadastralParcel and NamedPlace Custom transformers are pointing to the INSPIREdb.sdf file.
三。Publish both the workspaces to FME Server:
将名为inspire的新存储库添加到FME服务器
Reading the WMS in Data Inspector
WMS读卡器参数
Note: In FME Server if the fmeguest role has Read/Run permissions to the INSPIRE repository then you will not need to enter any authentication information.
Edit fmeguest role with Read/Run permissions to INSPIRE Repository
Experiment with different layer and extent (search envelope) selections.Note that background maps can sometimes interfere with correctly rendering WMS imagery,因此,在关闭背景图的情况下查看WMS,以获得更好的结果。
祝贺你,您现在已经实现了自己的OGC WMS,只需发布几个简单的FME工作区!
数据检查器中指定放置层的结果
此处使用的数据源于激励并包含信息和从根据创作共享归属(CC by)4.0
© 2019 亚搏在线Safe Software Inc |合法的