mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Make sure to encode tile-joined integers as ints, not doubles
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## 1.26.2
|
||||||
|
|
||||||
|
* Make sure to encode tile-joined integers as ints, not doubles
|
||||||
|
|
||||||
## 1.26.1
|
## 1.26.1
|
||||||
|
|
||||||
* Add tile-join option to rename layers
|
* Add tile-join option to rename layers
|
||||||
|
|||||||
@@ -240,6 +240,9 @@ void handle(std::string message, int z, unsigned x, unsigned y, std::map<std::st
|
|||||||
tas.type = outval.type;
|
tas.type = outval.type;
|
||||||
tas.string = joinval;
|
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)));
|
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);
|
key_order.push_back(joinkey);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#ifndef VERSION_HPP
|
#ifndef VERSION_HPP
|
||||||
#define VERSION_HPP
|
#define VERSION_HPP
|
||||||
|
|
||||||
#define VERSION "tippecanoe v1.26.1\n"
|
#define VERSION "tippecanoe v1.26.2\n"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user