Improve maxzoom guessing for tightly-clustered point data sources (#4)

* Improve maxzoom guessing for tightly-clustered point data sources

* Go back to the old distance estimate, since it is less mysterious

* Update changelog and version
This commit is contained in:
Erica Fischer
2022-08-11 10:13:54 -07:00
committed by GitHub
parent a9bf6cacd4
commit fec5e8354c
4 changed files with 57 additions and 10 deletions
+1
View File
@@ -480,6 +480,7 @@ int serialize_feature(struct serialization_state *sst, serial_feature &sf) {
if (n > 0) {
double avg = exp(sum / n);
// Convert approximately from tile units to feet
// See comment about empirical data in main.cpp
double dist_ft = sqrt(avg) / 33;
*(sst->dist_sum) += log(dist_ft) * n;