From b1466547f3624abddf5694be72a6474ec0ad8ece Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Fri, 11 Oct 2024 11:51:28 -0700 Subject: [PATCH] Revert "Revert "The multiplier cap was a bad idea"" This reverts commit 80f7cb1c0e8247caba5ec1b0f9e9974bf9145d43. --- tile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tile.cpp b/tile.cpp index 992cadf4..0a59ba74 100644 --- a/tile.cpp +++ b/tile.cpp @@ -1237,9 +1237,8 @@ static serial_feature next_feature(decompressor *geoms, std::atomic * } else if (z + extra_multiplier_zooms >= feature_minzoom && count->second + 1 < retain_points_multiplier) { count->second++; sf.dropped = count->second; - } else if (preserve_multiplier_density_threshold > 0 && count->second + 1 < 2 * retain_points_multiplier && + } else if (preserve_multiplier_density_threshold > 0 && sf.gap > ((1LL << (32 - z)) / preserve_multiplier_density_threshold) * ((1LL << (32 - z)) / preserve_multiplier_density_threshold)) { - count->second++; sf.dropped = FEATURE_ADDED_FOR_MULTIPLIER_DENSITY; } else { sf.dropped = FEATURE_DROPPED;