From 2f705d8963b10a73000076477a500172cb228e32 Mon Sep 17 00:00:00 2001 From: Blake Thompson Date: Wed, 28 Aug 2019 12:10:33 -0500 Subject: [PATCH] Added inline bytes values --- 3.0/README.md | 3 ++- 3.0/vector_tile.proto | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/3.0/README.md b/3.0/README.md index 211eb97..db73111 100644 --- a/3.0/README.md +++ b/3.0/README.md @@ -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 diff --git a/3.0/vector_tile.proto b/3.0/vector_tile.proto index 7772e1f..3ba0592 100644 --- a/3.0/vector_tile.proto +++ b/3.0/vector_tile.proto @@ -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; }