Skip to content

Commit

Permalink
The multiplier cap was a bad idea
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-f committed Oct 9, 2024
1 parent a26e413 commit 6f8273a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1237,9 +1237,8 @@ static serial_feature next_feature(decompressor *geoms, std::atomic<long long> *
} 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;
Expand Down

0 comments on commit 6f8273a

Please sign in to comment.