From 9827fa0c9cbae51183f2ec90191344b55fecf047 Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Thu, 5 Sep 2024 10:08:53 -0700 Subject: [PATCH] Don't enforce the tile size limit here if they said not to --- tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.cpp b/tile.cpp index 545c2f2c..faef7c5b 100644 --- a/tile.cpp +++ b/tile.cpp @@ -2023,7 +2023,7 @@ long long write_tile(decompressor *geoms, std::atomic *geompos_in, ch adjusted_feature_count = adjusted_feature_count * (skipped + kept) / kept; } - if (too_many_bytes || adjusted_feature_count > adjusted_max_tile_size) { + if (too_many_bytes || (adjusted_feature_count > adjusted_max_tile_size && !prevent[P_KILOBYTE_LIMIT])) { // Even being maximally conservative, each feature is still going to be // at least one byte in the output tile, so this can't possibly work. skipped++;