Support feature IDs for decoding

This commit is contained in:
Eric Fischer
2016-07-15 13:58:15 -07:00
parent a1f8564631
commit 2bc1b9bd91
3 changed files with 17 additions and 0 deletions
+5
View File
@@ -178,6 +178,11 @@ bool mvt_tile::decode(std::string &message) {
while (feature_reader.next()) {
switch (feature_reader.tag()) {
case 1: /* id */
feature.id = feature_reader.get_uint64();
feature.has_id = true;
break;
case 2: /* tag */
{
auto pi = feature_reader.get_packed_uint32();