span8
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
亚搏在线Safe Software has deployed this WFS demo live on FME Cloud.用户可以使用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
This tutorial contains a basic example of a WFS with 2 feature types,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,commonly known as: GetCapabilities,DescribeFeatureType and GetFeature.Two writers are used depending on which request is being made.For the GetCapabilities and DescribeFeatureType XML document responses,the Text File (TEXTLINE) writer is used.For GetFeature responses,the INSPIRE GML writer is used.
In general,this workspace checks for character encoding.If URLs / requests are percent encoded (which is the case for those coming from Data Inspector) then they will be decoded to ASCII.
There are 3 steps to determine which request type is being made:
Note: the GetCapabilities document does not usually change so it could be a static file.The XMLTemplater process was included to demonstrate how a response message could be composed.
Upload all required res矿泉水
Ensure that the reader and writers are 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.
If you send a POST request it automatically overrides the input of this workspace with the POST body (The POST body is the complete WFS request,例如,嵌入了任何过滤器查询的WFS GetFeature XML)。
Published parameters accessible through Data Streaming on FME Server
Example URL for accessing the WFS
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 136000AZ0063
Response in WFS client:
Filter Cadastral Parcels by ID.Map tiles byStamen Design,underCC-BY-3.0.Data byOpenStreetMap,under使用.
Use the following XML filter expression:
GeographicalName_language Italian
Result in WFS Client:
Filter NamedPlace data by Language = Italian.Map tiles byStamen Design,underCC-BY-3.0.Data byOpenStreetMap,under使用.
Any web service,such as WCS,WPS此FME Service Broker工作区方法也可以支持WMT或SOS。All that is required is to understand the web service protocol client / server requirements and configure accordingly.New service types would require some setup / configuration to implement the message handling compatible with that service standard,but this approach gives the user control to configure,customize,update and extend their web services how they want.
此处使用的数据来源于INSPIREand contains information and reads from a staging PostGIS database licensed under theCreative Commons Attribution (cc-by) 4.0
© 2019 亚搏在线Safe Software Inc |Legal