Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bad interaction between dynamic dropping and limiting by truncation #260

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

e-n-f
Copy link
Collaborator

@e-n-f e-n-f commented Sep 4, 2024

The safety checks added in #257 had another negative interaction of their own: when there were enough features in a tile that they hit the feature limit before they had all been deserialized, but there was also an abrupt feature limit set with --limit-tile-feature-count, it would still try to find features to drop dynamically, getting into a loop looking for them. Now when the abrupt limit is applied, it will stop looking for the graceful limit.

The new test demonstrates the problem by making a tile that has more features than the drop-as-needed feature count limit, which in turn is greater than the drop-abruptly feature limit. With recent versions of tippecanoe it would get stuck in a loop.

@e-n-f e-n-f merged commit 51fcf14 into main Sep 5, 2024
6 checks passed
@e-n-f e-n-f deleted the enf/fix-label-truncation-by-count branch September 5, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants