Skip to content

Commit

Permalink
Don't keep features with identical locations as multiplier features
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-f committed Nov 5, 2024
1 parent 7670174 commit 413f0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ static serial_feature next_feature(decompressor *geoms, std::atomic<long long> *
if (z >= feature_minzoom || sf.dropped == FEATURE_KEPT) {
count->second = 0;
sf.dropped = FEATURE_KEPT; // feature is kept
} else if (z + extra_multiplier_zooms >= feature_minzoom && count->second + 1 < retain_points_multiplier) {
} else if (z + extra_multiplier_zooms >= feature_minzoom && count->second + 1 < retain_points_multiplier && sf.index != next_feature_state.prev_not_dropped_index) {
count->second++;
sf.dropped = count->second;
} else if (preserve_multiplier_density_threshold > 0 &&
Expand Down

0 comments on commit 413f0c8

Please sign in to comment.