Function decodePrimitiveGroupLayout

Decode and validate one complete serialized OSMPBF PrimitiveGroup.

bool decodePrimitiveGroupLayout(
  const(ubyte)[] input,
  out PrimitiveGroupLayout layout,
  out PbfStatus status
) nothrow @nogc @safe;

Known primitive message fields are counted only when they use their schema wire type (length-delimited). A group containing more than one primitive kind is rejected because the OSMPBF schema requires all primitives in one group to have the same type. DenseNodes messages are merged across repeated occurrences. Their ID/lat/lon and keys_vals columns accept both canonical packed encoding and legal unpacked protobuf representation.

Dense delta accumulation is checked during this first pass, before any node can be emitted to a consumer. DenseInfo is not interpreted semantically yet, but every occurrence is scanned as a structurally valid protobuf submessage.

Parameters

NameDescription
input Complete serialized PrimitiveGroup payload.
layout Receives the borrowed validated group layout.
status Receives success or a precise structural/wire failure.

Returns

true for a structurally valid group; false otherwise.