Make sure to encode tile-joined integers as ints, not doubles

This commit is contained in:
Eric Fischer 2017-10-27 12:43:23 -07:00
parent 68e4f312f8
commit 197d36bdc3
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
## 1.26.2
* Make sure to encode tile-joined integers as ints, not doubles
## 1.26.1
* Add tile-join option to rename layers

View File

@ -240,6 +240,9 @@ void handle(std::string message, int z, unsigned x, unsigned y, std::map<std::st
tas.type = outval.type;
tas.string = joinval;
// Convert from double to int if the joined attribute is an integer
outval = stringified_to_mvt_value(outval.type, joinval.c_str());
attributes.insert(std::pair<std::string, std::pair<mvt_value, type_and_string>>(joinkey, std::pair<mvt_value, type_and_string>(outval, tas)));
key_order.push_back(joinkey);
}

View File

@ -1,6 +1,6 @@
#ifndef VERSION_HPP
#define VERSION_HPP
#define VERSION "tippecanoe v1.26.1\n"
#define VERSION "tippecanoe v1.26.2\n"
#endif