Download - Transforming EADRN into INSPIRE Hydrography
Transforming EA Detailed River Network
into INSPIRE Annex I Hydrography Theme
Debbie Wilson – Business Consultant
UK Location Data Providers Event
Thursday February 9, 2012
Introduction
• Detailed River Network provides information about the
River Network for England & Wales
• Contains 3 layers:
– DRN
– DRNNODES
– DRNOUTLINES
• Falls within scope of the Annex I Hydrography Theme:
– HydroNetwork <<Application Schema>>
Mapping DRN to HydroNetwork
DRNDRNNODES
fictitiousbeginLifeSpanVersion
Mandatory property but assigned
<<voidable>> stereotype so we can create a
nilReason value = “Unknown”
Reclassification of codelist valuesConditional statements were used to transform values
form one codelist to another using If-then-else logic
Example:
If flowDirection = 1 then output value is ‘inDirection’
Create references from DRNNODE to DRN –
spokeStart & spokeEnd
Relationship is defined in one direction from DRN to
DRNNODES so had to join DRN table to DRNNODES
twise
Mapping DRN to HydroNetwork
DRNDRNNODES
DRN to WatercourseLink:
• 7 of 11 properties map to data in DRN table
• 1 of 7 properties mapped required
transformation (reclassification)
• 1 of 11 properties can be derived using
constants
• 1 of 11 properties mapped to nilReason
• 2 of 11 properties don’t apply in real-world
so not mapped
DRNNODES to WatercourseLink:
• 3 of 9 properties map to data in DRNNODES
table
• 1 of 3 properties mapped required transformation
(reclassification)
• 2 of 9 properties can be derived using joins
• 1 of 9 properties mapped to nilReason
• 3 of 9 properties don’t apply in real-world so not
mapped
Transforming data using GO Publisher Desktop
Source Data Output XML
Preview Sample Validate Sample
Create XML structure by grouping columns
Adding new content: inspireID/namespace
Deriving content using joins
NOTE: These local object references can be replaced by a Linked Data
URIs when publishing data via a web service to enable then to be retrieved.
Example: http://location.data.gov.uk/so/hy/hydroNode/eaew.drn/
eaew1001000000066258/1
Reclassifying code values and creating NilReason
values using conditional statements (if-then-else)
CRS Transformation
Publishing and Validating Data
Copy Schema includes all the
relevant schemas into output
folder for exchange with data
Output data can be
raw xml or
compressed (zip/gzip)
Validate shall run in-built data validation to
check data is:
1. Well-formed
2. Schema valid
3. Conforms to business
rules/constraints (in production)
Publishing Data via WFS in 4 steps
Step 1: Change mapping to
output data within
wfs:FeatureCollection not
base:SpatialDataSet
& update object references
Publishing Data via WFS in 4 steps
Step 2: Configure
GetCapabilities
Publishing Data via WFS in 4 steps
Step 3: Bundle transformation
configuration, WFS software and
schemas, within WAR ready for
deployment
Publishing Data via WFS in 4 steps
Step 4: Deploy to
application server and test
WFS Response: Get first 10 WatercourseLinks
http://localhost:8080/Hydrography_DRN/GOPublisherWFS?service=wfs&version=
2.0.0&request=GetFeature&count=10&typenames=hy-n:WatercourseLink