Struct PbfReader
Whole-buffer OSMPBF reader.
struct PbfReader;
The reader is stateless; reusable allocation belongs to PbfReaderWorkspace. PbfReader.init is therefore a valid reader.
Handler callbacks are discovered statically by name. A handler may omit node, way, or relation entirely when that element kind is not needed. When a node callback is present it accepts one concrete semantic NodeView for both regular Node and DenseNodes encoding. Callbacks execute synchronously and must satisfy @safe nothrow @nogc. Borrowed views must not escape the callback.
Methods
| Name | Description |
|---|---|
nodes
(input)
|
Return a foreach adapter over semantic nodes in input.
|
read
(input, workspace, handler, summary, status)
|
Decode one complete already-loaded .osm.pbf byte sequence. |
read
(source, workspace, handler, summary, sourceStatus)
|
Decode one complete PBF from a bounded generic ByteSource. |
relations
(input)
|
Return a foreach adapter over semantic Relations in input.
|
ways
(input)
|
Return a foreach adapter over semantic Ways in input.
|