span8
span4
span8
span4
INSPIRE,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 theINSPIRE 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 theINSPIRE WFS demo,provide the user with a starting point to configure,customize,update and extend their web services.This approach can also be applied to other types of REST based web services beyond OGC or INSPIRE applications.
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.
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
The INSPIRE_WMS_GetMap workspace parses GetMap requests and transmits the actual WMS data responses in the form of image/png data.
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.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
Experiment with different layer and extent (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!
Results for the Named Place layer in the Data Inspector
The data used here originates from data made available by theINSPIREand contains information and reads from a staging PostGIS database licensed under theCreative Commons Attribution (cc-by) 4.0
Read INSPIRE ATOM Download Services with FME
Create INSPIRE ATOM Download Service
AIXM Airports to INSPIRE Air Transport Networks
Converting CityGML to INSPIRE 3D Buildings (Annex III)
INSPIRE GML Basic Writing and Validation Example
INSPIRE Cadastral Parcels Writing Demo
© 2019 亚搏在线Safe Software Inc |Legal