Exclude long attribute values from tilestats output, as specified

This commit is contained in:
Eric Fischer
2017-07-21 12:28:14 -07:00
parent 00aed42c0e
commit 62f135a97d
7 changed files with 87 additions and 12 deletions
-5
View File
@@ -349,7 +349,6 @@ int serialize_geometry(json_object *geometry, json_object *properties, json_obje
metakey[m] = properties->keys[i]->string;
bool track = false;
if (properties->values[i] != NULL) {
int vt = properties->values[i]->type;
std::string val;
@@ -412,24 +411,20 @@ int serialize_geometry(json_object *geometry, json_object *properties, json_obje
exit(EXIT_FAILURE);
}
m++;
track = true;
} else if (vt == JSON_NUMBER) {
tas.type = metatype[m] = mvt_double;
metaval[m] = val;
m++;
track = true;
} else if (vt == JSON_TRUE || vt == JSON_FALSE) {
tas.type = metatype[m] = mvt_bool;
metaval[m] = val;
m++;
track = true;
} else if (vt == JSON_NULL) {
;
} else {
tas.type = metatype[m] = mvt_string;
metaval[m] = val;
m++;
track = true;
}
}