Skip to content

Commit

Permalink
Don't enforce the tile size limit here if they said not to
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-f committed Sep 5, 2024
1 parent ef70af0 commit 9827fa0
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 @@ -2023,7 +2023,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *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++;
Expand Down

0 comments on commit 9827fa0

Please sign in to comment.