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

Tile size: water only changes #2010

Merged
merged 10 commits into from
Dec 16, 2021
6 changes: 3 additions & 3 deletions integration-test/1838-too-many-bays.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def _bay(osm_id, area, name):
)

with self.features_in_tile_layer(z, x, y, 'water') as features:
# should only have top 10 features
self.assertEqual(10, len(features))
# should only have top 2 features
self.assertEqual(2, len(features))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At zoom 8 our area threshold for labels is 500,000,000 (was 200,000,000) and for polygons it's still 20000000.

Under the earlier system 5 meet the area threshold, but after only 2 do. So the changes here make sense to me.


# check that they're in order
ranks = [f['properties']['kind_tile_rank'] for f in features]
self.assertEqual(range(1, 11), ranks)
self.assertEqual(range(1, 3), ranks)