Pass feature IDs through in tile-join

This commit is contained in:
Eric Fischer
2016-08-16 13:21:15 -07:00
parent 938e6a9eea
commit c85303aada
6 changed files with 23 additions and 14 deletions
+5
View File
@@ -62,6 +62,11 @@ void handle(std::string message, int z, unsigned x, unsigned y, std::vector<std:
mvt_feature outfeature;
int matched = 0;
if (feat.has_id) {
outfeature.has_id = true;
outfeature.id = feat.id;
}
for (size_t t = 0; t + 1 < feat.tags.size(); t += 2) {
const char *key = layer.keys[feat.tags[t]].c_str();
mvt_value &val = layer.values[feat.tags[t + 1]];