Track how many features of each type are in each layer

This commit is contained in:
Eric Fischer
2017-07-14 17:23:41 -07:00
parent 65c095cc2b
commit 62ee53992b
3 changed files with 30 additions and 2 deletions
+6
View File
@@ -378,6 +378,12 @@ std::map<std::string, layermap_entry> merge_layermaps(std::vector<std::map<std::
if (map->second.maxzoom > out_entry->second.maxzoom) {
out_entry->second.maxzoom = map->second.maxzoom;
}
out_entry->second.points += map->second.points;
out_entry->second.lines += map->second.lines;
out_entry->second.polygons += map->second.polygons;
printf("%zu %zu %zu\n", out_entry->second.points, out_entry->second.lines, out_entry->second.polygons);
}
}