-
Notifications
You must be signed in to change notification settings - Fork 7
/
example.yml
59 lines (59 loc) · 1.48 KB
/
example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
buffer: 128
layers:
- name: "roads"
clip: true
queries:
- minzoom: 12
maxzoom: 20
sql: |-
SELECT
way,
highway,
name,
railway,
mz_id AS __id__,
mz_road_sort_key AS sort_key,
(CASE WHEN highway IN ('motorway', 'motorway_link') THEN 'highway'
WHEN highway IN ('trunk', 'trunk_link', 'secondary', 'primary') THEN 'major_road'
ELSE 'minor_road' END) AS kind,
(CASE WHEN highway LIKE '%_link' THEN 'yes'
ELSE 'no' END) AS is_link,
(CASE WHEN tunnel IN ('yes', 'true') THEN 'yes'
ELSE 'no' END) AS is_tunnel,
(CASE WHEN bridge IN ('yes', 'true') THEN 'yes'
ELSE 'no' END) AS is_bridge
FROM
planet_osm_line
WHERE
mz_road_level <= 12
ORDER BY
sort_key ASC
- name: "places"
queries:
- minzoom: 8
maxzoom: 13
sql: |-
SELECT
name,
place AS kind,
way,
mz_id AS __id__
FROM
planet_osm_point
WHERE
name IS NOT NULL
AND place IN (
'city',
'county',
'province',
'island',
'town',
'neighbourhood',
'suburb',
'locality',
'lake',
'village',
'hamlet',
'isolated_dwelling'
)
ORDER BY __id__ ASC