Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added inline bytes values #143

Open
wants to merge 1 commit into
base: v3.0-development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 3.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,11 @@ Each structured value begins with a 64-bit unsigned integer, which can be split
| list | 8 | value is the number of list items to follow: each item in the list is a structured value |
| map | 9 | value is the number of key-value pairs to follow: each pair is an index into Layer keys followed by a structured value for the value |
| number-list | 10 | parameter is the number of items `N` in the list: one `uint64` is an index into the Layer's `attribute_scalings` followed by `N` `uint64` nullable deltas for the list items |
| bytes | 11 | index into layer `bytes_values` |

Note that the structured values that follow a list or map may themselves contain lists or maps.

Value types 11 through 15 are reserved for future versions of this specification. Implementations MUST treat structured values of these types as opaque values that consume only one integer of storage (i.e., are not followed by additional sub-attributes). In the future they may refer to additional inline types or additional reference types.
Value types 12 through 15 are reserved for future versions of this specification. Implementations MUST treat structured values of these types as opaque values that consume only one integer of storage (i.e., are not followed by additional sub-attributes). In the future they may refer to additional inline types or additional reference types.

##### 4.4.2.3. Inline Attribute Keys

Expand Down
4 changes: 4 additions & 0 deletions 3.0/vector_tile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ message Tile {
optional uint32 tile_y = 13;
optional uint32 tile_zoom = 14;

// Table of values of type bytes. Used for Inline Attributes
// in version 3. See spec section 4.4.2 for details.
repeated bytes bytes_values = 15;

extensions 16 to max;
}

Expand Down