Function readPbfDocument
Decode input into durable semantic values while retaining exact source.
bool readPbfDocument(
const(ubyte)[] input,
out PbfDocument document,
out PbfReadStatus status
) @safe;
Parameters
| Name | Description |
|---|---|
| input | Complete already-loaded PBF file bytes. |
| document | Receives the durable document. Exact raw source is populated even when the function returns false. |
| status | Existing high-level PBF read status. |
Returns
true only when the file is semantically readable and every Node, Way and
Relation has been copied into the owned model. Unknown optional fields or
features may still make document
false; that does not prevent read-only semantic materialization.
Notes
Semantic materialization currently performs one complete traversal per OSM
element kind. This avoids weakening the Phase-3 @nogc direct-sink
callback contract merely to allocate an owned model.