-
Notifications
You must be signed in to change notification settings - Fork 119
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
Changes from all commits
43c02f1
c534cc3
2f9910c
e25dc08
d581ab3
08de668
32ee9c1
2265703
bee79d2
14a8c45
8a825e1
598ea11
2267989
2592882
abd4517
fa2ca05
7343e70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,8 @@ def test_one_bus_route(self): | |
'bicycle_network': 'lcn', | ||
'bicycle_shield_text': '50', | ||
'bus_network': type(None), | ||
'bus_shield_text': '23'}) | ||
'bus_shield_text': type(None), | ||
'is_bus_related': True}) | ||
|
||
def test_inbound_and_outbound_routes(self): | ||
# Jackson St. SF, part of trolley-bus route 3 | ||
|
@@ -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), | ||
nvkelso marked this conversation as resolved.
Show resolved
Hide resolved
|
||
'is_bus_related': True, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is wrong, the integ test says it should be None |
||
'all_bus_networks': [type(None)], | ||
'all_bus_shield_texts': ['3']}) | ||
'all_bus_shield_texts': [type(None)]}) | ||
|
||
def test_full_lists_disappear_by_zoom_12(self): | ||
# make sure the all_* lists are gone by zoom 12 on major roads, but | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
||
def test_trunk_bridge(self): | ||
self.generate_fixtures(dsl.way(59801274, wkt_loads('LINESTRING (-122.479362893599 37.77087721656759, -122.479200837522 37.77058011511458)'), {u'bridge': u'yes', u'layer': u'1', u'maxspeed': u'35 mph', u'lanes': u'3', u'name': u'Crossover Drive', u'tiger:cfcc': u'A35', u'source': u'openstreetmap.org', u'hgv': u'designated', | ||
|
@@ -22,7 +22,7 @@ def test_trunk_bridge(self): | |
self.assert_has_feature( | ||
16, 10471, 25331, 'roads', | ||
{'kind': 'major_road', 'kind_detail': 'trunk', 'id': 59801274, | ||
'name': 'Crossover Dr.', 'is_bridge': True, 'sort_rank': 443}) | ||
'name': type(None), 'is_bridge': True, 'sort_rank': 443}) | ||
|
||
def test_primary_bridge(self): | ||
self.generate_fixtures(dsl.way(399640204, wkt_loads('LINESTRING (-118.117754009656 33.8102109201601, -118.117900794373 33.80993729058998)'), {u'bridge': u'yes', u'tiger:name_base': u'Los Coyotes Diagonal', u'lanes': u'2', u'name': u'North Los Coyotes Diagonal', | ||
|
@@ -31,7 +31,7 @@ def test_primary_bridge(self): | |
self.assert_has_feature( | ||
16, 11265, 26221, 'roads', | ||
{'kind': 'major_road', 'kind_detail': 'primary', 'id': 399640204, | ||
'name': 'North Los Coyotes Diagonal', 'is_bridge': True, | ||
'name': type(None), 'is_bridge': True, | ||
'sort_rank': 430}) | ||
|
||
def test_secondary_bridge(self): | ||
|
@@ -41,7 +41,7 @@ def test_secondary_bridge(self): | |
self.assert_has_feature( | ||
16, 10486, 25339, 'roads', | ||
{'kind': 'major_road', 'kind_detail': 'secondary', 'id': 27613581, | ||
'name': 'Oakdale Ave.', 'is_bridge': True, 'sort_rank': 429}) | ||
'name': type(None), 'is_bridge': True, 'sort_rank': 429}) | ||
|
||
def test_teriary_bridge(self): | ||
self.generate_fixtures(dsl.way(242940297, wkt_loads('LINESTRING (-122.395271869347 37.7907203080898, -122.395156974822 37.79062745343989, -122.394827562608 37.79036145403797)'), { | ||
|
@@ -50,7 +50,7 @@ def test_teriary_bridge(self): | |
self.assert_has_feature( | ||
16, 10486, 25327, 'roads', | ||
{'kind': 'major_road', 'kind_detail': 'tertiary', 'id': 242940297, | ||
'name': 'Beale St.', 'is_bridge': True, 'sort_rank': 427}) | ||
'name': type(None), 'is_bridge': True, 'sort_rank': 427}) | ||
|
||
def test_residential_bridge(self): | ||
self.generate_fixtures(dsl.way(162038104, wkt_loads('LINESTRING (-121.009686569766 39.24352031486828, -121.009910968924 39.24385926543338)'), { | ||
|
@@ -59,7 +59,7 @@ def test_residential_bridge(self): | |
self.assert_has_feature( | ||
16, 10738, 24989, 'roads', | ||
{'kind': 'minor_road', 'kind_detail': 'residential', | ||
'id': 162038104, 'name': 'Woodwardia Pl.', 'sort_rank': 410}) | ||
'id': 162038104, 'name': type(None), 'sort_rank': 410}) | ||
|
||
def test_service_bridge(self): | ||
self.generate_fixtures(dsl.way(232303398, wkt_loads('LINESTRING (-122.416602904758 37.63546055316739, -122.416466181171 37.63550956768369)'), { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ def test_motorway_level_0(self): | |
self.assert_has_feature( | ||
16, 10475, 25324, 'roads', | ||
{'kind': 'highway', 'kind_detail': 'motorway', 'id': 167952621, | ||
'name': 'Presidio Pkwy.', 'is_tunnel': True, 'sort_rank': 333}) | ||
'name': type(None), 'is_tunnel': True, 'sort_rank': 333}) | ||
|
||
def test_trunk_level_0(self): | ||
self.generate_fixtures(dsl.way(259492789, wkt_loads('LINESTRING (-74.16702601822249 40.73275266220829, -74.16711180733211 40.73254919807029)'), {u'tunnel': u'yes', u'tiger:name_base': u'McCarter', u'hgv:state_network': u'yes', u'name': u'McCarter Highway', u'tiger:cfcc': u'A35', u'tiger:name_base_1': u'State Route 21', u'hgv': u'designated', u'tiger:zip_left': u'07104', | ||
|
@@ -23,15 +23,15 @@ def test_trunk_level_0(self): | |
self.assert_has_feature( | ||
16, 19266, 24635, 'roads', | ||
{'kind': 'major_road', 'kind_detail': 'trunk', 'id': 259492789, | ||
'name': 'McCarter Hwy.', 'is_tunnel': True, 'sort_rank': 331}) | ||
'name': type(None), 'is_tunnel': True, 'sort_rank': 331}) | ||
|
||
self.generate_fixtures(dsl.way(277441866, wkt_loads('LINESTRING (-83.51858074221251 35.74467572285489, -83.5186876417313 35.74474476841309, -83.51881250755579 35.74482300053089, -83.5189321631516 35.74490640915329, -83.51904642885579 35.74499477553549, -83.51915494534208 35.74508795384219, -83.51925717362138 35.74518557950971, -83.5193531136938 35.74528736088479, -83.519442406233 35.74539315213308, -83.51952478174461 35.74550258869337, -83.5196001503969 35.74561537891499, -83.5196680630324 35.74573115823921, -83.51972860948248 35.745849707927, -83.51978143042119 35.7459706634228, -83.519826436017 35.74609380599009, -83.51986353643818 35.74621847944319, -83.51989255202189 35.74634468377489, -83.519913482768 35.746471981529, -83.51992632867659 35.74660000815989, -83.51993082025298 35.74672825330868)'), { | ||
u'unsigned_ref': u'SR 71;SR 73', u'lanes': u'2', u'name': u'Gatlinburg Spur Road (north)', u'tunnel': u'yes', u'surface': u'paved', u'source': u'openstreetmap.org', u'official_name': u'Gatlinburg Spur Road (north)', u'NHS': u'yes', u'oneway': u'yes', u'ref': u'US 321;US 441', u'highway': u'trunk'})) | ||
|
||
self.assert_has_feature( | ||
16, 17563, 25792, 'roads', | ||
{'kind': 'major_road', 'kind_detail': 'trunk', 'id': 277441866, | ||
'name': 'Gatlinburg Spur Road (north)', 'is_tunnel': True, | ||
'name': type(None), 'is_tunnel': True, | ||
'sort_rank': 331}) | ||
|
||
def test_primary_level_0(self): | ||
|
@@ -41,7 +41,7 @@ def test_primary_level_0(self): | |
self.assert_has_feature( | ||
16, 16808, 24434, 'roads', | ||
{'kind': 'major_road', 'kind_detail': 'primary', 'id': 117837633, | ||
'name': 'Dixie Hwy.', 'is_tunnel': True, 'sort_rank': 330}) | ||
'name': type(None), 'is_tunnel': True, 'sort_rank': 330}) | ||
|
||
def test_secondary_level_0(self): | ||
self.generate_fixtures(dsl.way(57782075, wkt_loads('LINESTRING (-87.64371486497609 41.7396067862949, -87.64368198663669 41.73869201695129)'), {u'tiger:source': u'tiger_import_dch_v0.6_20070809', u'tiger:name_base': u'Halsted', u'name': u'South Halsted Street', u'tiger:cfcc': u'A41', u'tiger:separated': u'no', u'tunnel': u'yes', | ||
|
@@ -50,7 +50,7 @@ def test_secondary_level_0(self): | |
self.assert_has_feature( | ||
16, 16812, 24391, 'roads', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you updated this to |
||
{'kind': 'major_road', 'kind_detail': 'secondary', 'id': 57782075, | ||
'name': 'S Halsted St.', 'is_tunnel': True, 'sort_rank': 329}) | ||
'name': type(None), 'is_tunnel': True, 'sort_rank': 329}) | ||
|
||
def test_teriary_level_0(self): | ||
self.generate_fixtures(dsl.way(57708079, wkt_loads('LINESTRING (-87.63913570281528 41.75983047016649, -87.63944553175681 41.75982631559528)'), {u'tiger:source': u'tiger_import_dch_v0.6_20070809', u'tiger:name_base': u'74th', u'name': u'West 74th Street', u'tiger:cfcc': u'A41', u'tiger:separated': u'no', u'tunnel': u'yes', u'tiger:zip_left': u'60636', u'tiger:zip_right': u'60636', u'tiger:reviewed': u'no', | ||
|
@@ -59,7 +59,7 @@ def test_teriary_level_0(self): | |
self.assert_has_feature( | ||
16, 16813, 24386, 'roads', | ||
{'kind': 'major_road', 'kind_detail': 'tertiary', 'id': 57708079, | ||
'name': 'W 74th St.', 'is_tunnel': True, 'sort_rank': 327}) | ||
'name': type(None), 'is_tunnel': True, 'sort_rank': 327}) | ||
|
||
def test_residential_level_0(self): | ||
self.generate_fixtures(dsl.way(56393654, wkt_loads('LINESTRING (-87.6687173149529 41.85966997294218, -87.66872872355698 41.86017336309299)'), {u'tiger:source': u'tiger_import_dch_v0.6_20070809', u'tiger:name_base': u'Paulina', u'bicycle': u'yes', u'name': u'South Paulina Street', u'tiger:cfcc': u'A41', u'tiger:separated': u'no', u'tunnel': u'yes', u'tiger:zip_left': u'60608', u'tiger:zip_right': u'60608', u'tiger:reviewed': u'no', | ||
|
@@ -68,7 +68,7 @@ def test_residential_level_0(self): | |
self.assert_has_feature( | ||
16, 16808, 24362, 'roads', | ||
{'kind': 'minor_road', 'kind_detail': 'residential', | ||
'id': 56393654, 'name': 'S Paulina St.', 'is_tunnel': True, | ||
'id': 56393654, 'name': type(None), 'is_tunnel': True, | ||
'sort_rank': 310}) | ||
|
||
def test_service_level_0(self): | ||
|
@@ -78,4 +78,4 @@ def test_service_level_0(self): | |
self.assert_has_feature( | ||
16, 16814, 24363, 'roads', | ||
{'kind': 'minor_road', 'kind_detail': 'service', 'id': 190835369, | ||
'name': 'S Wong Pkwy.', 'is_tunnel': True, 'sort_rank': 308}) | ||
'name': type(None), 'is_tunnel': True, 'sort_rank': 308}) |
There was a problem hiding this comment.
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_idThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM