a-b-street / osm-reader

Read OSM XML or PBF in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

osm-reader

This crate reads an OpenStreetMap XML or PBF file, letting the caller ignore the details about the format. It returns all nodes, ways, and relations in a format convenient for further stream processing. The heavy lifting is done by roxmltree and osmpbf.

Status: under development. Use osmio for something more feature-rich and mature.

TODO before a crates.io release:

  • Use the lower-level xmlparser approach from osm2streets to minimize memory
  • Other TODOs in the code
  • Tests, docs, examples

About

Read OSM XML or PBF in Rust

License:Apache License 2.0


Languages

Language:Rust 100.0%