Track layer description as part of the tilestats

This commit is contained in:
Eric Fischer
2018-05-24 10:27:43 -07:00
parent b65a5d1bb8
commit 7128ac44d5
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -83,6 +83,7 @@ int additional[256];
struct source {
std::string layer = "";
std::string file = "";
std::string description = "";
};
size_t CPUS;
@@ -1303,6 +1304,7 @@ int read_input(std::vector<source> &sources, char *fname, int maxzoom, int minzo
std::map<std::string, layermap_entry> layermap;
for (size_t l = 0; l < nlayers; l++) {
layermap_entry e = layermap_entry(l);
e.description = sources[l].description;
layermap.insert(std::pair<std::string, layermap_entry>(sources[l].layer, e));
}