斯潘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 services are a great way to share INSPIRE data and this is made possible with FME.In FME,OGC web services are hosted by publishing a ‘service broker' workspace to FME Server registered under the Data Streaming Service.
Note: this requires FME Server 2014 or later to support the INSPIRE GML Writer.
FME workspace as web service broker for WFS
亚搏在线安全软件已经在FME云上部署了这个WFS演示。Users can view the service using the WFS Reader in FME Data Inspector or from any WFS client.
https://demos-亚搏在线safe-software.fmecloud.com/fmedatastreaming/inspire/inspire_wfs.fmw
When published locally,the service URL is:
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,the ‘service broker' workspace handles the web message traffic – accepting requests and generating responses according to the chosen service standard.
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.
上传所有需要的资源ources
确保读者和作者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请求,for example the WFS GetFeature XML with any filter query embedded).
通过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 136000 AZ00 63
Response in WFS client:
按ID筛选地籍包裹。地图瓦片Stamen Design,在下面CC-BY3.0.数据通过OpenStreetMap,在下面CC-BSA.
使用以下XML筛选器表达式:
地理名称语言 Italian
Result in WFS Client:
Filter NamedPlace data by Language = Italian.地图瓦片Stamen Design,在下面CC-BY3.0.数据通过OpenStreetMap,在下面CC-BSA.
任何Web服务,such as WCS,WPS,WMTS or SOS could also be supported by this FME service broker workspace approach.所需要的只是理解Web服务协议客户机/服务器的需求并进行相应的配置。新的服务类型需要一些设置/配置来实现与该服务标准兼容的消息处理,但是这种方法让用户可以控制配置,customize,根据需要更新和扩展他们的Web服务。
The data used here originates from data made available by the启发并包含信息和从根据创作共享归属(CC by)4.0
© 2019 亚搏在线Safe Software Inc |合法的