INSPIRE Protected Areas Demo

Liz Sanderson
Liz Sanderson
  • Updated

FME Version

Introduction

The demo shows how FME can be used to write INSPIRE* compliant Annex I Protected Sites** GML. This involves reading from various data sources having different data models and transforming their model to conform to the common INSPIRE protected sites schema. The resulting GML validates against the INSPIRE schema.
Note that for a more basic example of using FME to write INSPIRE compliant data, please see the INSPIRE Cadastral Parcels Writing Demo.

 

Processing Steps

Read and combine multiple data sources

1. Read in Source Data
The three sources of protected sites data, Natura2000 (N2K.N2000), Swedish NVR (NV_GEOREG_SW00) and Helcom (BSPA) are each read with a FME Feature Store Reader.

2. NVR Only Data Transformations
Features are aggregated based on DIDs. The dates of the features are sorted in ascending order and any duplicate DIDs are removed from the NVR Decision table. The three sources of NVR data are combined using the FeatureMerger transformer.

3. Clip Natura2000 and NVR Data To The Southern Portion of The Dataset
As the datasets of Natura2000 and NVR are very large, the data is clipped to reduce the size, which is acceptable for the purposes of this demo. The transformers, Clipper and Creator (which creates a bounding box), can be removed if one would like all data written out.
 

Attribute Creation and Mapping

4. Generate IDs
IDs are generated as per INSPIRE requirements. GML IDs are prefixes with the namespace attribute value. The INSPIRE namespace convention includes the two letter country code, followed by the three letter acronym for the national mapping agency, and ending with the two letter code for the INSPIRE theme. For Natura2000 data, Object ID is used in the GML ID generation. Unique IDs are created using the UUIDGenerator for NVR and Helcom data, as no other unique ID values exist when the three datasets are combined.

AttributeCreator parameters demonstrating how the gml_id is populated for NVR data:
http_download_1444329840286_6032.png

5. Attribute Creation
INSPIRE specified attributes are created using AttributeCreator, SchemaMapper, AttributeExposer, and AttributeCopier transformers.

Date Formatting
Natura2000 and Helcom data do not contain dates which can be formatted to match the INSPIRE requirements. Therefore, the date values are defined in a CSV table, and are mapped with a SchemaMapper transformer. NVR data does contain dates which can be formatted into the INSPIRE specified format, using the DateFormatter.

DateFormatter parameters:
http_download_1444329840603_6032.png

6. Schema Mapping

Simple Schema Mapping Transformers

AttributeValueMapper: An AttributeValueMapper is used to populate namespace fields for Helcom data. Helcom data covers the Baltic region, so the namespace fields cannot be hardcoded as for Natura2000 and NVR datasets, which only contain data from Sweden. Namespace fields are populated for Helcom data based on country name and national mapping agency.

AttributeCopier: The AttributeCopier transformer maps the source attributes to the correct destination attributes. Attributes with the same name in the source and destination do not need to be mapped, as the Writer will automatically map these features.

The AttributeValueMapper is used to populate Helcom's namespace attribute:
http_download_1444329840928_6032.png

SchemaMapper: The SchemaMapper transformer maps and creates various INSPIRE required attributes based on a CSV table. Note that new attributes created by the schema mapper must be “exposed” to be used further on in the workspace. Helcom data CSV File Preview and SchemaMapper Parameters: http_download_1444329841229_6032.png

http_download_1444329841488_6032.png
 

Geometry Transformation and Reprojection

7. Reprojection
The coordinate systems are reprojected to the official coordinate system, ETRS89, also known as EPSG:4258.

8. Geometry Transformation
The geometry is named to match the name of the xml_geometry type in the Writer’s feature type properties. In this example, only the ‘geometry’ xml_geometry name is used. INSPIRE Protected Sites feature type properties:
http_download_1444329841852_6032.png


Output

9. Write INSPIRE GML

After the above processing steps, the data has been formatted for INSPIRE. The workspace writes the three data sources as ProtectedSite INSPIRE GML using the INSPIRE Writer and built-in ProtectedSites application schema.


Validation

Once data has been written using the INSPIRE GML Writer, it is important to validate against XML syntax and an INSPIRE XML Schema Document (XSD). Validation is done in a validation workspace, using an XMLValidator transformer. It is also possible to validate the XML output with the INSPIRE Writer using the writer parameter “Validate Output File” found under the INSPIRE writer parameters in the Navigator. In both instances, when the workspace is run, any errors with the XML will be recorded by a Logger.


Results

To view the protected sites in Data Inspector, use the INSPIRE GML Reader. For quicker display times, under reader parameters, select feature types by themes, with no INSPIRE themes selected, or only the ProtectedSites theme selected.

Viewing the INSPIRE GML in the Data Inspector:
http_download_1444329842100_6032.png


Note: This example is for demonstration purposes only. The resulting data is not to be used for any operational purposes.
A special thanks to Metria, one of our Swedish partners, for their central role and participation in this project. Also, thanks to Lantmäteriet, the Swedish mapping, cadastral and land registration authority for the demo source data.
* INSPIRE is a European Union (EU) directive that requires member states and agencies to share spatial data in order to better support environmental decision making. The key approach to enable this data exchange is the use of a common data model accessed using open standards, such as OGC (Open Geospatial Consortium) web services. ** The terms protected site and protected area will be used interchangeably in the demo. For more information on INSPIRE Protected Sites, please see the Data Specifications on Protected Sites available on the INSPIRE website.
 

Data Attribution

This demo uses data from three sources:

  • Natura2000 (N2K), a EU-wide protected areas database
  • Swedish NVR, protected areas data from the Swedish Environmental Protection Agency
  • Helcom, the Baltic Marine Environment Protection Commission, also known as the Helsinki Commission, a database of protected areas for the Baltic regions.

All of these have different native models which need to be mapped to the INSPIRE protected sites schema.

 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.