< BRouterJump to navigation Jump to search
Brouter map creation is the process of creating .rd5 file that are used by Brouter.
.rd5 files gives the routing data for a 5*5 degrees area on the world which is about 550 km high and 340 km wide for north/middle Europe.
See http://brouter.de/brouter/segments4/ for a list of standard available .rd5 files
For basic documentation, see Build your own BRouter segments files.
Like indicated in the mapcreation.md, creating the maps can be done using the process_pbf_planet.sh script and it follows the folowing steps:
- Reads the input, either a .pbf file, or osm.gz file a .osm file from stdin all using OSM XML format.
- Parse the nodes, ways and realtion into own structures, NodeData, WayData or RelationData
- Writes out 45*30 degree node tiles (*.ntl), a way file and a relation file all in binary format
- Filter out unused nodes according to the way file
- cut the way file into 45*30 - pieces
- add relation data to the relevant ways
- cut the 45*30 way files into 5*5 pieces
- create a file containing all border node ids
- Cut the 45*30 node tiles into 5*5 pieces
- Add SRTM elevation data
- Make a bordernodes file
- For each 5*5 tile, the corresponding nodefile and wayfile is read plus the (global) bordernodes file, and an rd5 is written