From fbafe3d658bc0d745b46dc9bc835fd88d2408276 Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Mon, 12 Feb 2024 16:13:25 -0800 Subject: [PATCH] Still don't let it put more features in a cluster than is allowed --- tile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tile.cpp b/tile.cpp index 2381f77e..0e48d4da 100644 --- a/tile.cpp +++ b/tile.cpp @@ -1674,6 +1674,10 @@ long long write_tile(decompressor *geoms, std::atomic *geompos_in, ch // this is a new multiplier cluster, so stop dropping features // that were dropped because the previous lead feature was dropped drop_rest = false; + } else if (sf.dropped != FEATURE_DROPPED) { + if (multiplier_cluster_size >= (size_t) retain_points_multiplier) { + sf.dropped = FEATURE_DROPPED; + } } if (sf.dropped == FEATURE_DROPPED || drop_rest) {