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

roads layer thining z14 to z15 #2056

Merged
merged 17 commits into from
Feb 12, 2022
Merged

roads layer thining z14 to z15 #2056

merged 17 commits into from
Feb 12, 2022

Conversation

peitili
Copy link
Contributor

@peitili peitili commented Feb 8, 2022

  • Update tests
  • Update docs

queries.yaml Show resolved Hide resolved
queries.yaml Show resolved Hide resolved
queries.yaml Show resolved Hide resolved
queries.yaml Outdated Show resolved Hide resolved
z, x, y = tile
self.assert_has_feature(
z, x, y, 'roads',
{'id': type(None), 'shield_text': 'A151'})
Copy link
Contributor Author

@peitili peitili Feb 12, 2022

Choose a reason for hiding this comment

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

@nvkelso basically I copied the implementation of _check_network_relation and the only diffrence I made here is to assert 'id': type(None) instead. Before it asserts the id == way_id

Copy link
Member

Choose a reason for hiding this comment

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

LGTM

@@ -13,7 +13,7 @@ def test_motorway_bridge(self):
self.assert_has_feature(
16, 10472, 25323, 'roads',
{'kind': 'highway', 'kind_detail': 'motorway', 'id': 28412298,
'name': 'Presidio Pkwy.', 'is_bridge': True, 'sort_rank': 443})
'name': type(None), 'is_bridge': True, 'sort_rank': 443})
Copy link
Member

Choose a reason for hiding this comment

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

This is because the feature is too short to fit the label, while at zoom 17 it would fit / we don't drop.

@@ -50,7 +50,7 @@ def test_secondary_level_0(self):
self.assert_has_feature(
16, 16812, 24391, 'roads',
Copy link
Member

@nvkelso nvkelso Feb 12, 2022

Choose a reason for hiding this comment

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

If you updated this to 17, 33624, 48782 then the name would still be there, but it's fine this way.

@nvkelso
Copy link
Member

nvkelso commented Feb 12, 2022

Estimated impact on 512px sized tiles:

  • z13: reduction of 5 - 10%
  • z14: reduction of 20 - 75%
  • z15: reduction of 15 - 45%

Copy link
Member

@nvkelso nvkelso left a comment

Choose a reason for hiding this comment

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

LGTM

There are a few test failures that this PR and the last road layer thinning PR introduced. Let's tackle them in a followup PR.

@nvkelso nvkelso merged commit 3db0418 into master Feb 12, 2022
@nvkelso nvkelso deleted the peiti/roadsthin branch February 12, 2022 04:44
@@ -114,9 +115,10 @@ def test_inbound_and_outbound_routes(self):
16, 10477, 25327, 'roads',
{'id': 225516711,
'bus_network': type(None),
'bus_shield_text': '3',
'bus_shield_text': type(None),
'is_bus_related': True,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is wrong, the integ test says it should be None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants