Get desktop application:
View/edit binary Protocol Buffers messages
Used in:
Tags of this feature. Even numbered values refer to the nth value in the keys list on the tile message, odd numbered values refer to the nth value in the values list on the tile message.
The type of geometry stored in this feature.
Contains a stream of commands and parameters (vertices). The repeat count is shifted to the left by 3 bits. This means that the command has 3 bits (0-15). The repeat count indicates how often this command is to be repeated. Defined commands are: - MoveTo: 1 (2 parameters follow) - LineTo: 2 (2 parameters follow) - ClosePath: 15 (no parameters follow) Ex.: MoveTo(3, 6), LineTo(8, 12), LineTo(20, 34), ClosePath Encoded as: [ 3 6 18 5 6 12 22 15 ] == command type 15 (ClosePath) ===== relative LineTo(+12, +22) == LineTo(20, 34) === relative LineTo(+5, +6) == LineTo(8, 12) == [00010 010] = command type 2 (LineTo), length 2 === relative MoveTo(+3, +6) = implicit command type 1 (MoveTo), length 1 Commands are encoded as uint32 varints, vertex parameters are encoded as sint32 varints (zigzag). Vertex parameters are also encoded as deltas to the previous position. The original position is (0,0)
A list of indices to the geometry array that specify a triangulation of this geometry. This must only exist if this feature is a polygon. These are the valid indices for the example above: 0 ==> (3/6) 1 ==> (8/12) 2 ==> (20/34) Indices beyond 2 are invalid, as the total number of vertices is 3.
The total number of vertices encoded in the geometry field. This is can be deduced by manually iterating through the geometry field, but we can just as well store the number to avoid the overhead on parsing.
Used in:
Used in:
Any compliant implementation must first read the version number encoded in this message and choose the correct implementation for this version number before proceeding to decode other parts of this message.
The actual features in this tile.
Dictionary encoding for keys
Dictionary encoding for values
The bounding box in this tile spans from 0..4095 units
Total vertex count in this layer.
Variant type encoding
Used in:
Exactly one of these values may be present in a valid message