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

including more medium sized parks #1996

Merged
merged 1 commit into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions integration-test/1999-medium-sized-parks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# -*- encoding: utf-8 -*-
from . import FixtureTest
import dsl


class MediumSizedParks(FixtureTest):

def test_alamo_square_min_zoom_12(self):

z, x, y = (12, 654, 1583)

self.generate_fixtures(
# https://www.openstreetmap.org/way/745183964
dsl.way(745183964, dsl.box_area(z, x, y, 173000), {
'addr:city': 'San Francisco',
'addr:postcode': '94117',
'addr:state': 'CA',
'ele': '79',
'leisure': 'park',
'localwiki': 'sf/Alamo Square',
'name': 'Alamo Square',
'operator': 'San Francisco Recreation and Parks Department',
'source': 'openstreetmap.org',
'tourism': 'attraction',
'wikidata': 'Q1855438',
'wikipedia': 'en:Alamo Square, San Francisco',
}),
)

self.assert_has_feature(
z, x, y, 'landuse', {
'id': 745183964,
'kind': 'park',
'min_zoom': 12
})

def test_bryant_park_min_zoom_14(self):
import dsl

z, x, y = (14, 4824, 6157)

self.generate_fixtures(
# https://www.openstreetmap.org/way/22727025
dsl.way(22727025, dsl.box_area(z, x, y, 40000), {
'addr:city': 'New York',
'addr:full': 'Between 40th and 42nd Streets at 6th Avenue',
'addr:postcode': '10018',
'addr:state': 'NY',
'check_date:opening_hours': '2021-11-16',
'ele': '20',
'gnis:county_id': '061',
'gnis:created': '01/17/2006',
'gnis:feature_id': '2083160',
'gnis:state_id': '36',
'leisure': 'park',
'name': 'Bryant Park',
'name:ja': u'\u30d6\u30e9\u30a4\u30a2\u30f3\u30c8\u30d1\u30fc\u30af',
'name:ko': u'\ube0c\ub77c\uc774\uc5b8\ud2b8 \uacf5\uc6d0',
'name:tr': 'Bryant Park',
'opening_hours': 'Mo-Su 07:00-23:00',
'source': 'openstreetmap.org',
'tourism': 'attraction',
'website': 'http://www.bryantpark.org',
'wheelchair': 'yes',
'wikidata': 'Q995174',
'wikipedia': 'en:Bryant Park',
}),
)

self.assert_has_feature(
z, x, y, 'landuse', {
'id': 22727025,
'kind': 'park',
'min_zoom': 14
})
6 changes: 3 additions & 3 deletions yaml/landuse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ global:
- [ 9, 5000000 ]
- [ 10, 1000000 ]
- [ 11, 500000 ]
- [ 12, 250000 ]
- [ 13, 100000 ]
- [ 14, 50000 ]
- [ 12, 150000 ]
- [ 13, 50000 ]
- [ 14, 20000 ]
- [ 15, 2000 ]
default: 16
- &tier3_min_zoom
Expand Down