Struct PbfHeader
Known semantic HeaderBlock content.
struct PbfHeader;
Feature strings retain occurrence order and duplicates because declarations can carry codec/consumer capability meaning. Unknown optional declarations may be present here as exact bytes, but the preservation state then prevents semantic rewrite until those semantics are understood.
is an empty header. Use standard for a new OSM 0.6 document.
Fields
| Name | Type | Description |
|---|---|---|
bbox
|
PbfHeaderBBox | |
hasBBox
|
bool | |
hasReplicationBaseUrl
|
bool | |
hasReplicationSequenceNumber
|
bool | |
hasReplicationTimestamp
|
bool | |
hasSource
|
bool | |
hasWritingProgram
|
bool | |
optionalFeatures
|
immutable(ubyte)[][] | |
replicationBaseUrl
|
immutable(ubyte)[] | |
replicationSequenceNumber
|
long | |
replicationTimestamp
|
long | |
requiredFeatures
|
immutable(ubyte)[][] | |
source
|
immutable(ubyte)[] | |
writingProgram
|
immutable(ubyte)[] |
Methods
| Name | Description |
|---|---|
deepCopy
()
|
Duplicate mutable feature arrays; immutable byte strings may share. |
standard
()
|
Header suitable for a newly-created ordinary OSM 0.6 PBF document. |