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

Maps and Lists in feature properties #117

Closed
wants to merge 2 commits into from
Closed
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
12 changes: 10 additions & 2 deletions 3.0/vector_tile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ message Tile {
// Variant type encoding
// The use of values is described in section 4.1 of the specification
message Value {
// Exactly one of these values must be present in a valid message
// No more than one of these values may be present in a valid message.
// If no value is written, the message is null.
optional string string_value = 1;
optional float float_value = 2;
optional double double_value = 3;
Expand All @@ -24,7 +25,14 @@ message Tile {
optional sint64 sint_value = 6;
optional bool bool_value = 7;

extensions 8 to max;
// Even numbered elements refer to the nth key in the layer's keys list
// Odd numbered elements refer to the nth value in the layer's values list
repeated uint32 hash_value = 8 [ packed = true ];

// Each element refers to the nth value in the layer's values list
repeated uint32 list_value = 9 [ packed = true ];

extensions 10 to max;
}

// Features are described in section 4.2 of the specification
Expand Down