Transforming EADRN into INSPIRE Hydrography

16
Transforming EA Detailed River Network into INSPIRE Annex I Hydrography Theme Debbie Wilson Business Consultant [email protected] UK Location Data Providers Event Thursday February 9, 2012

description

GO Publisher demonstration of transforming the EA Detailed River Network into the INSPIRE Annex I Hydrography Theme - presented at the UKLP Data Publishing Workshop Feb 2012 by Debbie Wilson

Transcript of Transforming EADRN into INSPIRE Hydrography

Page 1: Transforming EADRN into INSPIRE Hydrography

Transforming EA Detailed River Network

into INSPIRE Annex I Hydrography Theme

Debbie Wilson – Business Consultant

[email protected]

UK Location Data Providers Event

Thursday February 9, 2012

Page 2: Transforming EADRN into INSPIRE Hydrography

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>>

Page 3: Transforming EADRN into INSPIRE Hydrography

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

Page 4: Transforming EADRN into INSPIRE Hydrography

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

Page 5: Transforming EADRN into INSPIRE Hydrography

Transforming data using GO Publisher Desktop

Source Data Output XML

Preview Sample Validate Sample

Page 6: Transforming EADRN into INSPIRE Hydrography

Create XML structure by grouping columns

Page 7: Transforming EADRN into INSPIRE Hydrography

Adding new content: inspireID/namespace

Page 8: Transforming EADRN into INSPIRE Hydrography

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

Page 9: Transforming EADRN into INSPIRE Hydrography

Reclassifying code values and creating NilReason

values using conditional statements (if-then-else)

Page 10: Transforming EADRN into INSPIRE Hydrography

CRS Transformation

Page 11: Transforming EADRN into INSPIRE Hydrography

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)

Page 12: Transforming EADRN into INSPIRE Hydrography

Publishing Data via WFS in 4 steps

Step 1: Change mapping to

output data within

wfs:FeatureCollection not

base:SpatialDataSet

& update object references

Page 13: Transforming EADRN into INSPIRE Hydrography

Publishing Data via WFS in 4 steps

Step 2: Configure

GetCapabilities

Page 14: Transforming EADRN into INSPIRE Hydrography

Publishing Data via WFS in 4 steps

Step 3: Bundle transformation

configuration, WFS software and

schemas, within WAR ready for

deployment

Page 15: Transforming EADRN into INSPIRE Hydrography

Publishing Data via WFS in 4 steps

Step 4: Deploy to

application server and test

Page 16: Transforming EADRN into INSPIRE Hydrography

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