Osmium  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Attributes
Osmium::StringTable::string_info Struct Reference

List of all members.

Public Attributes

uint16_t count
string_id_t interim_id

Detailed Description

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.


Member Data Documentation

number of occurrences of this string

an intermediate-id


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines