Expand description
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() {
// ...
}
Modules§
- PBF/Protobuf file format and return ArcOSMObj’s
- Changeset dump files
- Base OpenStreetMap object types
- OSC File format
- Read PBF file (currently alias for stringpbf::)
- Useful things for osmio
- PBF/Protobuf file format and return StringOSMObj’s
- Misc local utilities
- XML file format
Structs§
- Latitude and Longitude are stored internally as a 32-bit signed integer, in units of
COORD_PRECISION_NANOS
. - Latitude and Longitude are stored internally as a 32-bit signed integer, in units of
COORD_PRECISION_NANOS
. - Something that produces OSMObjects
Enums§
- A Node, Way or Relation
- An error when trying to write from an OSMWriter
- Timestamps can be stored as an ISO formatted string, or number of seconds since unix epoch
Constants§
- How many nanodegrees are represented by each unit in
Lat::inner()
. We use the same internal precision as OpenStreetMap.org, 100 nanodegrees. - Number of internal units (as returned from
Lat::inner
) in one degree.
Traits§
- A Node
- Something which could be any one of the possible OSM objects
- The basic metadata fields all OSM objects share
- A Generic reader that reads OSM objects
- A generic writer for OSM objects.
- A Relation
- A Way
Functions§
- Opens a PBF filename
- Opens a bzip2 filename
- The version string of this library.
Type Aliases§
- Type that stores the OSM Id