span8
span4
INSPIRE,或基础设施在欧洲空间信息是欧盟指令,旨在建立欧盟数据的空间数据基础设施,以实现跨边界的决策和提高空间信息公共访问。开放标准如OGC Web服务被用于帮助INSPIRE数据的交换。欲了解更多信息,请访问启发 website。
有了FME,就可以构建各种结合了INSPIRE数据网络服务。建立一个新的Web服务需要3个主要部分组成:
How FME can act as a WMS
业务代理方法可以应用到其他网络服务,包括WFS,WCS,WPS,WMTS和SOS,如果你也有Web服务协议的客户端/服务器规范的理解和工作区(S)配置要求是必要的 implement other web services.
该方法在这个演示概述,以及在启发 WFS demo,提供一个高起点配置,自定义,更新用户和扩展他们的网络服务。这种方法也可以应用于其他类型的超越OGC或INSPIRE应用基于REST的Web服务。
在这篇文章中概述的演示已经部署在云FME因此可使用任何WMS客户端,包括FME数据检查程序查看。
https://demos-safe-software.fmecloud.com/fmedatastreaming/INSPIRE/INSPIRE_WMS_GetCapabilities.fmw
当使用FME创建一个WMS,两个工作区是必需的,这是因为FME只允许每个工作空间和用于WMS的消息处理的编码(获得性能)和数据的一个类型MIME的流(的GetMap)响应是应用/ xml和图像/ PNG respectively.由于这两个响应不能在单一工作空间共存,使用了两个工作空间。
Note: The key to getting this to work is to edit the GetCapabilities document so that each service request calls the appropriate workspace.A key advantage of this approach is that the web service components are defined in a more modular fashion, one workspace per request type, making it easier to understand, diagnose problems, and maintain.
Writer Mime type in the Navigator window
该INSPIRE_WMS_GetCapabilities工作区的GetCapabilities请求监听并发送在应用/ XML文档的形式的适当的响应。
Process Get Request
注:URL参数将自动映射到同名的工作空间的参数。
Response: Generate GetCapabilities
Response: Error Handling
GetCapabilities workspace
的工作区INSPIRE_WMS_GetMap解析的GetMap请求并且发送在图像/ PNG数据的形式的实际数据WMS响应。
Process Get Request
Note: the text line input is only used to generate a record to drive the translation.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
Note: Currently, only one layer per request is supported.Multiple layers could be supported, but would require some list processing related to multiple layer selection.
Note: Under the Writer Format Parameters, World file and TAB file generation are set to ‘No’, as Data Streaming workspaces can only produce one file, or the result will be zipped.
Response: Error Handling
GetMap Workspace
1。除非你是在本地运行FME Server中,打开GetCapablities.xml:
GetCapabilities.xml样本
2。打开两个工作区和试运行他们在当地 - 它总是一个好主意,测试工作区正在运行发布到FME Server之前预期。在工作区的GetMap还要检查在CadastralParcel和NamedPlace定制变压器FeatureReaders都指向INSPIREdb.sdf文件。
3。同时发布工作区到FME服务器:
添加一个名为INSPIRE到FME Server的新的存储库
读数据检查的WMS
WMS阅读器参数
注:在FME服务器如果fmeguest角色具有读/运行权限INSPIRE库,那么你将不需要输入任何验证信息。
具有读/运行权限,激发库编辑fmeguest作用
尝试不同的层和程度 (search envelope) selections.Note that background maps can sometimes interfere with correctly rendering WMS imagery, so view the WMS with background maps turned off for better results.
Congratulations, you have now implemented your very own OGC WMS, just by publishing a few simple FME workspaces!
结果在数据检查指定的地点层
The data used here originates from data made available by the启发and contains information and reads from a staging PostGIS database licensed under the知识共享署名(CC-BY)4.0
©2019安全亚搏在线软件公司|法律