Module osm.io.pbf.writer
Loss-aware semantic OSMPBF writer.
The writer serializes the durable M4 semantic document into ordinary PBF blocks. It never merges unknown raw protobuf payload into edited semantic
output
if the preservation scan found source content that the owned model cannot represent, semantic write fails explicitly. Exact original-source reproduction is a separate operation.
Semantic output deliberately uses regular Node messages, raw (uncompressed) Blob payloads, coordinate granularity 1 nanodegree and date granularity 1 millisecond. This makes the write path simple and exact; DenseNodes and compression remain representation optimizations rather than semantic requirements.
This module serializes PBF bytes; it does not own filesystem, HTTP, range or
stream transport. Workspace consumers use transport-d for those I/O
concerns once its released package contract is available. See ADR 0019.
Date
2026-11-03
Structs
| Name | Description |
|---|---|
PbfWriteOptions
|
Optional semantic-writer controls. Zero values select documented defaults. |
PbfWriter
|
Stateless loss-aware PBF writer. |
PbfWriteStatus
|
Diagnostic from one PBF write operation. |
Enums
| Name | Description |
|---|---|
PbfWriteError
|
High-level failure category for semantic PBF writing. |