Struct PrimitiveBlockLayout

Cheap first-pass layout of one structurally valid OSMPBF PrimitiveBlock.

struct PrimitiveBlockLayout;

raw remains authoritative. Scalar presence flags distinguish an absent optional field from an explicitly encoded default value. stringCount is the merged number of StringTable.s entries across all valid StringTable message occurrences.

Fields

NameTypeDescription
dateGranularity intTimestamp granularity in milliseconds; protobuf default is 1000.
granularity intCoordinate granularity in nanodegrees; protobuf default is 100.
hasDateGranularity boolWhether date_granularity occurred with the expected wire type.
hasGranularity boolWhether granularity occurred with the expected wire type.
hasLatOffset boolWhether lat_offset occurred with the expected wire type.
hasLonOffset boolWhether lon_offset occurred with the expected wire type.
latOffset longLatitude offset in nanodegrees; protobuf default is zero.
lonOffset longLongitude offset in nanodegrees; protobuf default is zero.
primitiveGroupCount ulongNumber of correctly encoded PrimitiveGroup message occurrences.
raw const(ubyte)[]Complete serialized PrimitiveBlock, including unknown fields.
stringCount ulongNumber of merged StringTable entries.
stringTableOccurrences ulongNumber of correctly encoded top-level StringTable message occurrences.

Properties

NameTypeDescription
primitiveGroups[get] PrimitiveGroupRangeReturns the PrimitiveGroup payloads in original wire order.