Module osm.io.pbf.relation

Streaming decode of regular OSMPBF Relation messages.

A Relation exposes its signed OSM ID, ordered tags, optional Info metadata, and ordered members. Relation member IDs are reconstructed from the delta-coded memids column. roles_sid, memids, and types are treated as parallel logical arrays; packed, unpacked, repeated, and segmented protobuf representations are accepted and concatenated in field order.

Every Relation in the PrimitiveGroup is fully preflighted before the first sink call. Member order and duplicates are preserved exactly. Member roles are validated against the PrimitiveBlock StringTable; StringTable index zero is valid and represents the empty role. Only the schema MemberType values NODE, WAY, and RELATION are accepted by this validated decoder.

Date

2026-09-19

Functions

NameDescription
decodeRelations(block, group, table, sink, summary, status) Decode every regular Relation in one validated PrimitiveGroup.

Structs

NameDescription
RelationDecodeSummary Summary of one completed regular-Relation decode operation.
RelationMemberRange Borrowed input range over one validated Relation's ordered members.
RelationView One validated regular Relation with exact borrowed provenance.