Osmium
0.1
|
Public Attributes | |
uint16_t | count |
string_id_t | interim_id |
this is the struct used to build the StringTable. It is stored as the value-part in the strings-map.
when a new string is added to the map, its count is set to 0 and the interim_id is set to the current size of the map. This interim_id is then stored into the pbf-objects.
before the PrimitiveBlock is serialized, the map is sorted by count and stored into the pbf-StringTable. Afterwards the interim-ids are mapped to the "real" id in the StringTable.
this way often used strings get lower ids in the StringTable. As the protobuf-serializer stores numbers in variable bit-lengths, lower IDs means less used space in the resulting file.
number of occurrences of this string
an intermediate-id