mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-03 00:45:41 +02:00
Track desired feature count and geometry size in strategies
This commit is contained in:
+12
@@ -319,6 +319,18 @@ std::string stringify_strategies(std::vector<strategy> const &strategies) {
|
||||
any = true;
|
||||
}
|
||||
|
||||
if (strategies[i].feature_count > 0) {
|
||||
state.json_write_string("feature_count_desired");
|
||||
state.json_write_number(strategies[i].feature_count);
|
||||
any = true;
|
||||
}
|
||||
|
||||
if (strategies[i].geometry_size > 0) {
|
||||
state.json_write_string("geometry_size_desired");
|
||||
state.json_write_number(strategies[i].geometry_size);
|
||||
any = true;
|
||||
}
|
||||
|
||||
state.json_end_hash();
|
||||
}
|
||||
state.json_end_array();
|
||||
|
||||
Reference in New Issue
Block a user