You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,8 @@ It is possible to change the behaviour of the data builder by defining environme
63
63
-`USE_PREBUILT_STREET_GRAPH` to use the prebuilt street graph to finish a complete graph build
64
64
- All other values default to `NO_SPLIT_BUILD` which indicates that the build is run as normal
65
65
- (Optional) `USE_SEEDED_OSM` skips OSM updating and uses existing seed version
66
+
- (Optional) `SKIP_OSM_PREPROCESSING` skips OSM preprocessing even if an instruction file is defined
67
+
- (Optional) `SKIP_OTP_TESTS` skips OTP tests
66
68
67
69
### Data processing steps
68
70
@@ -175,3 +177,16 @@ It is possible to change the behaviour of the data builder by defining environme
175
177
Contains tools, such as the OneBusAway gtfs filter, for gtfs manipulation.
176
178
It uses the [opentransitsoftwarefoundation/onebusaway-gtfs-transformer-cli](https://registry.hub.docker.com/r/opentransitsoftwarefoundation/onebusaway-gtfs-transformer-cli) as the base image.
177
179
These tools are packaged inside a docker container and are used during the data build process.
180
+
181
+
#### OSM preprocessing
182
+
183
+
OSM preprocessing is done if a bash script is defined for a specific config and a specific OSM file.
184
+
See [hsl.sh](hsl/osm-preprocessing/hsl.sh) for an example.
185
+
186
+
When creating OSM preprocessing instructions you should:
187
+
1. Name the bash file as follows: `<osm_id_of_osm_file>.sh`. Valid file names can be e.g. `hsl.sh` or `southFinland.sh`.
188
+
2. Place the file in the `osm-preprocessing` directory of the config you want to use.
189
+
3. Make sure that the name of the output file is the same as the input file e.g. `hsl.pbf`.
190
+
4. Make sure that you do not reuse input and output filenames in commands.
191
+
For example, do not use: `osmfilter hsl.o5m -o=hsl.o5m ...` you can instead use `osmfilter hsl.o5m -o=hsl2.o5m ...`.
192
+
5. Test the script by running it locally and verifying that the output makes sense.
0 commit comments