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 RawBlocks 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.

Modules§

  • Helpers for reading dense nodes.
  • Various utilities, like timestamp and coordinate normalization.

Structs§

Enums§

Traits§

Functions§

  • Constructs a new TagReader from key and value index slices, and a corresponding string table.
  • Reads the next blob from pbf.