第8页
span4
INSPIRE is a European Union directive that aims to create an infrastructure of EU spatial data to enable policy making across boundaries and improve public access to spatial information.Open standards such as the Open Geospatial Consortium Web Feature Service (OGC WFS) are used to facilitate the exchange of INSPIRE data.有关更多信息,please visit theINSPIRE website.
Web服务是共享激励数据的一种很好的方式,这可以通过FME实现。In FME,OGC Web服务通过将“ServiceBroker”工作区发布到在数据流服务下注册的FME服务器来承载。
注:这需要FME Server 2014或更高版本来支持Inspire GML编写器。
FME workspace as web service broker for WFS
亚搏在线安全软件已经在FME云上部署了这个WFS演示。用户可以使用FME数据检查器中的WFS阅读器或从任何WFS客户机查看服务。
https://demos-亚搏在线safe-software.fmecloud.com/fmedatastreaming/inspire/inspire_wfs.fmw
When published locally,服务URL是:
http://localhost/fmedatastreaming/inspire/inspire_wfs.fmw
本教程包含一个具有两种特征类型的WFS的基本示例,spatial extents queries and an XML filter operation,though these can be extended by following the approach laid out in this workspace.
Instead of a workspace that just handles data conversion,“ServiceBroker”工作区处理Web消息流量—根据所选的服务标准接受请求并生成响应。
The INSPIRE_WFS workspace accepts GET (URL) or POST (XML) requests,通常称为:getcapabilities,DescribeFeatureType and GetFeature.Two writers are used depending on which request is being made.For the GetCapabilities and DescribeFeatureType XML document responses,使用文本文件(文本行)编写器。对于GetFeature响应,the INSPIRE GML writer is used.
一般来说,此工作区检查字符编码。If URLs / requests are percent encoded (which is the case for those coming from Data Inspector) then they will be decoded to ASCII.
有3个步骤来确定正在发出的请求类型:
注意:getCapabilities文档通常不会更改,因此它可能是一个静态文件。The XMLTemplater process was included to demonstrate how a response message could be composed.
上传所有需要的资源我们
确保读者和作者e registered with the Data Streaming service
In FME Server if there is a GET request the input parameters captured by the user selections in the workspace published parameters are implemented in the request URL and the text file input is not used.
如果发送一个POST请求,它会自动用POST主体覆盖此工作区的输入(POST主体是完整的WFS请求,例如,嵌入了任何过滤器查询的WFS GetFeature XML)。
通过FME服务器上的数据流访问已发布的参数
用于访问WFS的URL示例
If you would like to add a Filter you can add an XML Filter Expression and/or a Search Envelope.You can find some examples of this below:
Use the following XML filter expression in the Reader Constraints:
inspireId.Identifier.localId 1360000AZ0063号
Response in WFS client:
按ID筛选地籍包裹。地图平铺方式Stamen Design,在下面CC-BY-3.0型.数据依据OpenStreetMap,在下面CC-BY-SA公司.
使用以下XML筛选器表达式:
地理名称语言 Italian
Result in WFS Client:
Filter NamedPlace data by Language = Italian.地图平铺方式Stamen Design,在下面CC-BY-3.0型.数据依据OpenStreetMap,在下面CC-BY-SA公司.
任何Web服务,such as WCS,焊接工艺规程,此FME Service Broker工作区方法也可以支持WMT或SOS。所需要的只是理解Web服务协议客户机/服务器的需求并进行相应的配置。新的服务类型需要一些设置/配置来实现与该服务标准兼容的消息处理,但是这种方法让用户可以控制配置,customize,根据需要更新和扩展他们的Web服务。
此处使用的数据源于激励并包含信息和从根据创作共享归属(CC by)4.0
© 2019 亚搏在线Safe Software Inc |法律