Provision of Direct Access Download services
After successfully creating INSPIRE compliant GML data sets, the next step was to make them accessible through WFS interfaces. This includes injecting the data sets into a WFS 2.0 implementation and providing required dataset and service metadata.
Publishing Process
To publish the resulting INSPIRE GML files we've created, we used a relatively simple solution - a deegree Memory Feature Store. This simple approach only works with relatively small data sets, but is by far the fastest way at the time of this writing to get from a complex GML file to a Web Feature Service 2.0 (INSPIRE Direct Access Download Service) and a Web Map Service 1.3.0 (INSPIRE View Service).
We used the deegree3 docker image1 and run it according to the instructions on the Github repository. It comes with everything we needed, even for advanced setups with a PostGreSQL database backend.
First, we have set up deegree's Workspace and a Memory Feature Store as follows.
- Start deegree.
- If you run it locally with default settings, your default browser will be started and will go go to the services console. If the automatic launch didn't work, access the console by typing http://localhost:8080 in the location bar of your browser. You should now see the console.
- Click the workspaces link on the left and click the Import link labeled deegree-workspace- inspire. This will set up an in-memory feature store as well as create a default configuration for a View and a Download Service. After deegree has finished the download, the new workspace will be listed in section «Available workspaces».
- As the deegree-workspace-inspire is pre-configured for standard INSPIRE Annex I themes, we only need to pick the appropriate configuration, e.g. for Administrative Units. Go to «data stores/features» and activate the downloaded workspace by clicking Start. This initializes the workspace and may take a while. When the workspace appears next to «Active workspace», your deegree service is now running.
After we've set up the workspace and feature store configuration, we need to write the data we've previously transformed to the feature store. We will do so via deegree's Transactional Web Feature Service (WFS-T) capability, directly from hale studio:
- In hale, open the transformation project we've created previously.
- Go to «File», then to «Export» and «Transformed Data». Pick «WFS-T (Partitioned Upload)» as the export format.
- In the next screen, click the button «...» to the right of the text entry field labelled «Transaction URL». Enter the GetCapabilities URL of your Web Feature Service. Assuming default settings, it will be very similar to http://localhost:8080/deegree-webservices- 3.3.18/services/AU?service=WFS&version=2.0.0&request=GetCapabilities. hale will automatically derive the Transaction URL from the capabilities.
- Select WFS Version 2.0.0, and click «Next»
-
Now, we set the GML writer options. You will get the most reliable results when you explicitly
convert and declare the CRS, and since GML mandates counterclockwise polygon ring orientation, be sure to have these settings:
- Click «Next» again, and set the partitioning number. When all your features are small (no big geometries), you can use the default of 15.000, otherwise use a lower number, e.g. 1.000. The settings on the following pages can be left as-is, if you didn't change any of deegree's default settings. Click «Finish» and let the transformation and insertion run.
- When the transactions have finished, go back to the deegree service console. Here, go to «Home» and click the link «see layers» next to deegree-workspace-inspire. You should then see a map.
Example Services
We’ve also set up some live example services:
Moldova Example Services for INSPIRE Administrative Units 4.0:
- View Service (WMS Client)
- View Service (WMS GetCapabilities)
- Predefined Dataset Download Service
- Dataset metadata
- View Service metadata
- Download Service metadata
Ukraine Example Services for INSPIRE Administrative Units 4.0:
- View Service (WMS Client)
- View Service (WMS GetCapabilities)
- Predefined Dataset Download Service
- Dataset metadata
- View Service metadata
- Download Service metadata