pbf-craft-0.1.0 has been yanked.
Visit the last successful build:
pbf-craft-1.0.3
pbf-craft
A Rust library and command-line tool for reading and writing OpenSteetMap PBF file format.
- Written in pure Rust
- Provides an indexing feature to the PBF to greatly improve read performance.
Usage
Add this to your Cargo.toml:
[]
= "0.1"
Reading a PBF file:
let reader = from_path.unwrap;
reader
.par_find
.expect
Finding an element using the index feature. IndexedReader creates an index file for the PBF file, which allows you to quickly locate and retrieve an element when looking for it using its ID.
let mut indexed_reader = from_path.unwarp;
let node = indexed_reader.find.unwrap;