/tenra

Tenra converts the railway network published by DB Netz in INSPIRE format into GeoJSON

Primary LanguageJavaMIT LicenseMIT

Converting DB Netz Railway Network into GeoJSON

Tenra converts the railway network data in INSPIRE format into GeoJSON format.

DB Netz AG is the rail infrastructure company of the Deutsche Bahn AG (the German Railways) and is responsible for the approximately 33.000 km long rail network.

Since November 2015 DB Netz AG publishes the geodata of the railway network in the DB Open Data Portal under the Creative Commons Attribution 4.0 International (CC BY 4.0) license.

The problem is, however, that the INSPIRE format used for this publication is not completely straightforward and cannot be fully processed by the usual GIS tools (like QGIS). As a result, a lot of attributes go missing in the layers. For instance, railway lines miss the track numbers or railway station nodes miss the station codes.

The Tenra projects aims to overcome these problems by providing a converter from the INSPIRE format to the standard GeoJSON format which can be processed by most of the GIS tools out there.

Usage

java -jar tenra-<VERSION>.jar DB-Netz_INSPIRE_20131128.xml
  • You'll get the following files ins GeoJSON format (features):
    • railwayStationNodes.geojson - Stations/stops
    • railwayLines.geojson - Railway lines
    • markerPosts.geojson - Kilometer marks
    • railwayNodes.geojson - Railway nodes
    • railwayLinks.geojson - Railway links
    • railwayLinkSequences.geojson - Sequences of railway links

Licenses