Move tile-wide traits out of serial_feature

This commit is contained in:
Erica Fischer
2024-02-23 12:15:10 -08:00
parent a4a35751d8
commit bb3e84d1ec
2 changed files with 36 additions and 38 deletions
+2 -10
View File
@@ -99,13 +99,9 @@ struct serial_feature {
int dropped = FEATURE_DROPPED; // was this feature dropped by rate?
// unsigned long long drop_by; // dot-dropping priority
bool reduced; // is polygon dust
bool coalesced; // was coalesced from multiple features
int line_detail; // current tile resolution being used for simplification
int extra_detail; // extra tile resolution to retain in output
int maxzoom;
bool reduced; // is polygon dust
bool coalesced; // was coalesced from multiple features
double spacing; // feature spacing for --calculate-feature-density
double simplification; // simplification level at this zoom level
std::vector<ssize_t> arc_polygon; // used in --detect-shared-borders
ssize_t renamed; // used in --detect-shared-borders logic
long long clustered; // does this feature need the clustered/point_count attributes?
@@ -113,10 +109,6 @@ struct serial_feature {
std::shared_ptr<std::string> tile_stringpool; // string pool for mvt_value construction
std::set<std::string> need_tilestats;
std::unordered_map<std::string, accum_state> attribute_accum_state;
int z; // tile being produced
int tx;
int ty;
};
std::string serialize_feature(serial_feature *sf, long long wx, long long wy);