Module osm.io.pbf.compression

Compression identifiers used by OSMPBF Blob payloads.

The enumeration mirrors the data members of the Blob.data oneof from fileformat.proto. Raw and zlib payloads are mandatory reader capabilities; LZMA, LZ4, and Zstandard are optional codecs. The former bzip2 field remains recognizable so deprecated input is never mistaken for an unknown field.

Date

2026-09-12

Functions

NameDescription
blobPayloadFieldNumber(codec) Return the protobuf field number carrying codec.
isCodecSupported(codec) Return whether the current core can produce uncompressed bytes for codec.
isCompressed(codec) Return whether codec requires decompression before OSM protobuf decoding.

Enums

NameDescription
BlobCodec Compression/storage representation selected by an OSMPBF Blob.