//! Reads the contents of the input archive. //! //! LICENSE //! //! The code in this example file is released into the Public Domain. use osmflat::{FileResourceStorage, Osm}; fn main() -> Result<(), Box> { let archive_dir = std::env::args() .nth(1) .ok_or("USAGE: read ")?; let archive = Osm::open(FileResourceStorage::new(archive_dir))?; for _node in archive.nodes() { // do nothing } for _way in archive.ways() { // do nothing } for _relation in archive.relations() { // do nothing } Ok(()) }