mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
More structure initializers
This commit is contained in:
+7
-7
@@ -6,25 +6,25 @@
|
||||
#include "mvt.hpp"
|
||||
|
||||
struct type_and_string {
|
||||
int type;
|
||||
std::string string;
|
||||
int type = 0;
|
||||
std::string string = "";
|
||||
|
||||
bool operator<(const type_and_string &o) const;
|
||||
bool operator!=(const type_and_string &o) const;
|
||||
};
|
||||
|
||||
struct type_and_string_stats {
|
||||
std::vector<type_and_string> sample_values; // sorted
|
||||
std::vector<type_and_string> sample_values = std::vector<type_and_string>(); // sorted
|
||||
double min = INFINITY;
|
||||
double max = -INFINITY;
|
||||
int type = 0;
|
||||
};
|
||||
|
||||
struct layermap_entry {
|
||||
size_t id;
|
||||
std::map<std::string, type_and_string_stats> file_keys;
|
||||
int minzoom;
|
||||
int maxzoom;
|
||||
size_t id = 0;
|
||||
std::map<std::string, type_and_string_stats> file_keys = std::map<std::string, type_and_string_stats>();
|
||||
int minzoom = 0;
|
||||
int maxzoom = 0;
|
||||
|
||||
size_t points = 0;
|
||||
size_t lines = 0;
|
||||
|
||||
Reference in New Issue
Block a user