20 releases (13 breaking)

0.14.0 Sep 9, 2024
0.12.0 Nov 27, 2023
0.8.1 Jul 25, 2023
0.7.0 Feb 25, 2022
0.1.0 Oct 6, 2019

#189 in Geospatial

Download history 15/week @ 2024-12-15 1/week @ 2024-12-22 51/week @ 2025-01-05 22/week @ 2025-01-12 22/week @ 2025-01-19 8/week @ 2025-01-26 611/week @ 2025-02-02 18/week @ 2025-02-09 11/week @ 2025-02-16 14/week @ 2025-02-23 14/week @ 2025-03-02 17/week @ 2025-03-09 163/week @ 2025-03-16 33/week @ 2025-03-23 5/week @ 2025-03-30

218 downloads per month
Used in 3 crates

MIT/Apache and AGPL-3.0

510KB
13K SLoC

Read and write OpenStreetMap files

Reading files

use osmio::prelude::*;

let mut reader = osmio::read_pbf("path/to/filename.osm.pbf")?;
for obj in reader.objects() {
    // ...
}

Useful things for osmio


osmio Read and write OpenStreetMap file

The goal of this library is read and and write OpenStreetMap data files in pure Rust.

There is full read & write support for XML, OPL and read support for PBF file formats.

Library

Binaries

osmio-changeset-tags-to-sqlite

Takes 2 arguments, a changeset file, and a filename for a SQLite database. Creates a table changeset, with 2 columns, changeset_id, other_tags (a JSON array of changeset tags).

Copyright

Copyright MIT or Apache-2.0, 2017→2021 Amanda McCann amanda@technomancy.org

Dependencies

~30MB
~569K SLoC