Work in the direction of tracking representative attribute values

This commit is contained in:
Eric Fischer
2017-07-14 17:59:24 -07:00
parent 62ee53992b
commit 7445feb845
2 changed files with 19 additions and 5 deletions
+6 -5
View File
@@ -8,17 +8,18 @@ struct type_and_string {
int type;
std::string string;
size_t attribute_count = 0;
std::set<mvt_value> sample_values;
bool operator<(const type_and_string &o) const;
};
struct type_and_string_stats {
std::set<type_and_string> sample_values;
double min = INFINITY;
double max = -INFINITY;
bool operator<(const type_and_string &o) const;
};
struct layermap_entry {
size_t id;
std::set<type_and_string> file_keys;
std::set<type_and_string> file_keys; // XXX map to type_and_string_stats
int minzoom;
int maxzoom;