span8
span4
span8
span4
激励, or Infrastructure for Spatial Information in Europe is a European Union directive that aims to create a spatial data infrastructure for EU data, to enable policy making across boundaries and improve public access to spatial information. Open standards such as OGC web services are used to facilitate the exchange of INSPIRE data. For more information, please visit the激励website.
With FME, it is possible to build a variety of web services that incorporate INSPIRE data. Building a new web service requires 3 main components:
FME如何作为WMS
The service broker approach can be applied to other web services, including WFS, WCS, WPS, WMTS, and SOS if you also have an understanding of the web service protocol client / server specifications and the workspace(s) configuration requirement that is necessary to implement other web services.
The approach outlined in this demo, as well as in the激励WFS demo,为用户提供配置、自定义、更新和扩展其web服务的起点。这种方法也可以应用于OGC或INSPIRE应用程序之外的其他类型的基于REST的web服务。
The demo outlined in this article has been deployed on FME Cloud so is available to view using any WMS Client, including the FME Data Inspector.
https://demos-safe-software.fmecloud.com/fmedatastreaming/INSPIRE/INSPIRE_WMS_GetCapabilities.fmw
When using FME to create a WMS, two workspaces are required, this is because FME only allows one type of MIME encoding per workspace and for WMS the message handling (GetCapabilities) and data streaming (GetMap) responses are application/xml and image/png respectively. 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. 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
The INSPIRE_WMS_GetCapabilities workspace listens for GetCapabilities requests and transmits the appropriate response in the form of application/XML documents.
Process Get Request
Note: URL parameters are automatically mapped to workspace parameters of the same name.
Response: Generate GetCapabilities
Response: Error Handling
GetCapabilities workspace
INSPIRE\u WMS\u GetMap工作区解析GetMap请求,并以image/png数据的形式传输实际的WMS数据响应。
Process Get Request
注:文本行输入只是用于生成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. Unless you are running FME Server locally, open the GetCapablities.xml:
Sample of GetCapabilities.xml
2. Open both workspaces and test run them locally - it’s always a good idea to test the workspace is running as expected before publishing to FME Server. In the GetMap workspace also check the FeatureReaders in the CadastralParcel and NamedPlace Custom transformers are pointing to the INSPIREdb.sdf file.
3. Publish both the workspaces to FME Server:
Add a new repository called INSPIRE to FME Server
Reading the WMS in Data Inspector
WMS Reader Parameters
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
尝试不同的层和范围(搜索封套)选择。请注意,背景贴图有时会干扰WMS图像的正确渲染,因此请在关闭背景贴图的情况下查看WMS以获得更好的效果。
Congratulations, you have now implemented your very own OGC WMS, just by publishing a few simple FME workspaces!
Results for the Named Place layer in the Data Inspector
The data used here originates from data made available by the激励and contains information and reads from a staging PostGIS database licensed under theCreative Commons Attribution (cc-by) 4.0
© 2020 Safe Software Inc |Legal