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 entries across all valid StringTable
message occurrences.
Fields
| Name | Type | Description |
|---|---|---|
dateGranularity
|
int | Timestamp granularity in milliseconds; protobuf default is 1000. |
granularity
|
int | Coordinate granularity in nanodegrees; protobuf default is 100. |
hasDateGranularity
|
bool | Whether date_granularity occurred with the expected wire type.
|
hasGranularity
|
bool | Whether granularity occurred with the expected wire type.
|
hasLatOffset
|
bool | Whether lat_offset occurred with the expected wire type.
|
hasLonOffset
|
bool | Whether lon_offset occurred with the expected wire type.
|
latOffset
|
long | Latitude offset in nanodegrees; protobuf default is zero. |
lonOffset
|
long | Longitude offset in nanodegrees; protobuf default is zero. |
primitiveGroupCount
|
ulong | Number of correctly encoded PrimitiveGroup message occurrences. |
raw
|
const(ubyte)[] | Complete serialized PrimitiveBlock, including unknown fields. |
stringCount
|
ulong | Number of merged StringTable entries. |
stringTableOccurrences
|
ulong | Number of correctly encoded top-level StringTable message occurrences. |
Properties
| Name | Type | Description |
|---|---|---|
primitiveGroups[get]
|
PrimitiveGroupRange | Returns the PrimitiveGroup payloads in original wire order. |