Follow JSON rules for what looks like a number in a CSV

This commit is contained in:
Eric Fischer
2017-11-03 15:17:09 -07:00
parent 6467a5b70d
commit 1960eb8dae
3 changed files with 62 additions and 1 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ void handle(std::string message, int z, unsigned x, unsigned y, std::map<std::st
if (joinval.size() > 0) {
if (joinval[0] == '"') {
joinval = csv_dequote(joinval);
} else if ((joinval[0] >= '0' && joinval[0] <= '9') || joinval[0] == '-') {
} else if (is_number(joinval)) {
attr_type = mvt_double;
}
}