Crate rosm_pbf_reader
source ·Expand description
A low-level library for parsing OSM data in PBF format.
An OSM PBF file is a sequence of blobs. These blobs can be read with read_blob
. The
RawBlock
s returned by read_blob
can then be decompressed and parsed by
BlockParser::parse_block
, which returns a Block
, containing either a parsed
header/primitive block or an unknown block’s binary data.
The library also provides utilities for reading densely or delta encoded data in these blocks.
Raw header and primitive block definitions (generated by Prost) are exported
through the pbf
module.
§Links
Modules§
- Helpers for reading dense nodes.
- Various utilities, like timestamp and coordinate normalization.
Structs§
- Parser with an internal buffer for
RawBlock
s. - The default blob decompressor.
- Utility for reading delta-encoded values directly, like
pbf::Way::refs
andpbf::Relation::memids
. - An unparsed, possibly compressed block.
- Generalized implementation for reading normal or densely encoded tags from string tables.
Enums§
- Result of
BlockParser::parse_block
. - Blob compression method.
- Possible errors returned by Decompressor implementations.
- Possible errors returned by the library.
Traits§
- Trait for custom decompression support.
Functions§
- Constructs a new
TagReader
from key and value index slices, and a corresponding string table. - Reads the next blob from
pbf
.