Module osm.io.pbf.features

OSMPBF HeaderBlock feature classification and required-feature policy.

Structural HeaderBlock decoding is intentionally separate from deciding whether a particular reader configuration understands all required file features. This module performs that capability check without allocating and reports the first unsupported required feature by borrowed byte slice.

Unknown optional features never block read-only semantic interpretation. Their presence is still reported because a future semantic rewrite must not silently erase or reinterpret them.

Date

2026-09-12

Functions

NameDescription
assessHeaderFeatures(header, support) Assess HeaderBlock feature declarations against an explicit reader policy.
classifyHeaderFeature(feature) Classify one raw HeaderBlock feature string.
validateRequiredFeatures(header, support, assessment, status) Validate that every required feature is understood by one reader policy.

Structs

NameDescription
HeaderFeatureAssessment Summary of feature declarations and compatibility with one reader policy.
HeaderFeatureSupport Reader capabilities that can change how OSM entity bytes are interpreted.

Enums

NameDescription
HeaderFeatureKind Semantic classification of currently documented HeaderBlock features.