Skip to content

Commit ca87ca4

Browse files
committed
osm_to_railjson: add osm.pbf filtering advice
Signed-off-by: Simon <sim.gaubert.sg@gmail.com>
1 parent 863b5db commit ca87ca4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

editoast/osm_to_railjson/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Example for Germany:
66

77
1. Download OSM's German data (~4Gb `germany-latest.osm.pbf`) from
88
https://download.geofabrik.de/europe/germany.html
9+
10+
This is not mandatory, but we strongly recommend using [osmium](https://osmcode.org/osmium-tool/) to filter the osm.pbf file with only the data needed by osm_to_railjson.
11+
```sh
12+
osmium tags-filter <path/to/germany-latest.osm.pbf> nwr/railway nwr/train -o <path/to/germany-latest.osm.pbf>
13+
```
14+
It can divide by 3 the time taken by osm_to_railjson.
915
2. Launch conversion (release build of editoast and conversion can be long):
1016
```sh
1117
cd ../../editoast

0 commit comments

Comments
 (0)