mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user