implementation of strategies using open source software in ... · pdf fileautomatic...

16
Implementation of strategies using open source software in a process chain for automatic delineation of INSPIRE elevation datasets along watercourses Christian Schwartze codematix GmbH INSPIRE Conference 2017 | Friday, September 8 th

Upload: dinhkiet

Post on 31-Jan-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Implementation of strategiesusing open source softwarein a process chain forautomatic delineation ofINSPIRE elevation datasetsalong watercourses

Christian Schwartzecodematix GmbH

INSPIRE Conference 2017 | Friday, September 8th

Page 2: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

InformationstechnikzentrumBund* (ITZBund, Ilmenau,Germany)

▪ IT service provider for mainly federalagencies

▪ hosting and operation of ITadministrative processes, SWdevelopment and support

▪ initiator of this project (and otherINSPIRE-related tasks)

* German Federal Centre for Information Technology

The “Who” question…codematix GmbH (Jena,Germany)

▪ dynamic company specialized oncustomer tailored SW develpoment,web services and training

▪ IT services: system design,implementation and optimization ofGIS enterprise solutions; geospatialdata processing, infrastructures andsupport

Page 3: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

3D-Datenarchiv▪ BfG: Bundesanstalt für Gewässerkunde *

▪ intranet application: digital preservationof 3D topography data▪ central archiving, searching and

provision▪ terrain and riverbed data along federal

waterways and coastal regions▪ data types: profiles, breaklines,

measurement/bearing data, grid points,TINs… = INSPIRE data types ?

* the German Federal Institute of Hydrology

Page 4: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Preliminary review▪ identification of INSPIRE relevant data in

3D-Datenarchiv application▪ (open source) software approaches and

geodata transformation concepts to meetrequirements of INSPIRE elevation theme(EL, Annex II)▪ methods to provide processed data in form

of view/download services

Page 5: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Basic situation▪ identified representation types

in INSPIRE:ElevationGridCoverage andContourLine▪ consolidated and separately

provided data basis: ASCII filescontaining high resolutionelevation data▪ hundreds of xyz-formatted text

files (~220GB)▪ for a total of 19 federal

waterway sections▪ preprocessing needed (INSPIRE

encoding requirements)

Page 6: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

(1) Configurable,automated andperformant workflow

E.g. using Python Stetl or QGISProcessing Framework

Main goals of ASCII elevation datatransformation

(3) Further processinginto cartographicproducts or services

E.g. DEM, contour lines orhillshade maps

(2) Output morepopular GIS compatiberaster formats

Enables a more flexible datausage, e.g. with GeoTiffs

Page 7: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Geospatial data processing workflows ( 1 )

Stetl ?▪ ETL means: Extract – Transform – Load▪ Stetl means: Streaming ETL▪ open source framework focussing on

transformation of (complex) mass data(e.g. rich GML) using processing chainsbased on data packages (streaming)

http://stetl.readthedocs.io

Page 8: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Geospatial data processing workflows ( 2 )

Stetl !▪ no graphical model builder, but…▪ rather scripting models with Python than graphical drag & drop

of single components▪ uses existing ETL tools, e.g. OGR, XSLT▪ speed-optimized

SOURCE INPUTINPUT FILTERFILTER FILTERFILTER OUTPUTOUTPUT TARGET…

Stetl Python modules

e.g.:stetl.fileinputstetl.ogrinput…stetl.myinput

e.g.:stetl.xsltfilterstetl.gmlfeatureextractor…stetl.myfilter

e.g.:stetl.dboutputstetl.ogroutput…stetl.myoutput

e.g.: GML e.g.: Database

Elevationmass data

DEM /Shapefile /GML …

Page 9: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

*. xyz*. xyz*. xyz

Geospatial data processing workflows ( 3 )

Stetl used for ASCII elevation data▪ inputs: xyz data files with columns separated by x

whitespaces (Tripel format)▪ outputs: digital elevation models (GeoTiff),

hillshades (GeoTiff), contour lines(Shapefile/INSPIRE GML)▪ …and in between: Stetl packages , here: text

chunks

*. xyz src.utils.DgmwReader

src.utils.DgmwReader

src.utils.RealCsvConverter

src.utils.RealCsvConverter

src.utils.Rasterizersrc.utils.

Rasterizer… …Stetl packages:ASCII xyz

Stetl packages:Real CSV

*. xyz*. xyz*. xyz*. tif

JOB 1

src.utils.MapCreator

src.utils.MapCreator

JOB 2

DEM

Hillshade

ContourLines

Page 10: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Geospatial data processing workflows ( 4 )

Stetl process configuration▪ define overall process chain(s): input,

filter/processing and output moduleschains = …

▪ instantiate (your) input/outputcomponents or filterclass = src.utils.Rasterizer

▪ configure (your) class, e.g. Rasterizerclean = 1epsg = {epsg_in}

Page 11: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Geospatial data processing workflows ( 5 )

A Rasterizer with Stetl▪ takes current CSV chunk from data

stream▪ uses GDAL/OGR on each CSV

chunk, e.g:

▪ outputs individual tilesin GeoTiff formatas input for „JOB 2“

Page 12: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Geospatial data processing workflows ( 6 )

Stetl: Results▪ created datasets/files as a basis

for INSPIRE WMS (deegreesoftware)http://atlas.wsv.bund.de/inspire/el/wms

▪ data download via INSPIRE ATOMfeedhttp://atlas.wsv.bund.de/inspire/atom/hoehen.xml

Page 13: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Geospatial data processing workflows ( 7 )

QGIS ProcessingFramework▪ includes advanced analysis algorithms,

e.g. native QGIS functions, GRASS-GIS/SAGA modules, R, GDAL/OGR▪ goal: optimizing/improving contourline

visualization in view service (WMS)

1. threshold-based removal of very shortcontour lines (small „rings“)

2. additional vector attributes, e.g. for linelabels and line classification

3. visually attractive lines by means ofsmoothing algorithms (e.g. „Snake“)

Page 14: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Geospatial data processing workflows ( 8 )

QGIS contour line model

uses e.g. followingalgorithms (=modelcomponents):• GRASS-GIS for

line removal andsmoothing• Python Field

calculators• own Python

scripts

Page 15: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

ResultingINSPIREWMS for EL

Page 16: Implementation of strategies using open source software in ... · PDF fileautomatic delineation of ... dynamic company specialized on ... Stetl process configuration define overall

Thank you!