Lesstat / pbfextractor

Create graph files out of OSM and SRTM data for

Home Page:https://github.com/lesstat/cycle-routing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pbfextractor

Pbfextractor is a tool to extract graph files from OSM and SRTM data for the Cyclops project. It extracts a graph for cyclists that contains data on the distance, height ascent and road suitability for bicycles. The data for road suitability is based on the "highway", "cycleway", "bicycle" and "sidewalk" tags from OSM and has been tested for German graphs.

Usage

Pbfextractor takes three arguments: - a pbf file - the path to a folder with the necassary SRTM files - the path to a file in which to write the graph

pbfextractor [path/to/pbf-file] [folder/with/srtm/files] [path/to/output/file]

Installation

To Compile and install Pbfextractor you need a current installation of rust. After cloning the package, it can be installed with

cargo install --path [path/to/your/bin]

Or you compile it and run it directly from the repository:

cargo build --release
./target/release/pbfextractor [path/to/pbf-file] [folder/with/srtm/files] [path/to/output/file]

About

Create graph files out of OSM and SRTM data for

https://github.com/lesstat/cycle-routing

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%