forked from gregrs-uk/gb-leisure-carto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.mml
307 lines (307 loc) · 9.64 KB
/
project.mml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
{
"bounds": [
-9.3195,
49.4596,
2.4578,
61.1157
],
"center": [
-2.5068,
52.1908,
14
],
"format": "png8",
"interactivity": false,
"minzoom": 14,
"maxzoom": 15,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"Stylesheet": [
"style.mss"
],
"Layer": [
{
"geometry": "polygon",
"extent": [
-3.1318318,
51.792036,
-2.2744444,
52.405986
],
"Datasource": {
"type": "postgis",
"table": "(\nselect way, planet_osm_polygon.natural, landuse\nfrom planet_osm_polygon\nwhere planet_osm_polygon.natural in ('woodland','wood') or\nlanduse in ('forest','residential','industrial','retail','commercial','farmyard')\n)\nas landuse",
"key_field": "",
"geometry_field": "",
"extent_cache": "dynamic",
"extent": "",
"dbname": "gis",
"id": "landuse",
"project": "gb-leisure",
"srs": "+init=epsg:3857"
},
"id": "landuse",
"class": "",
"srs-name": "custom",
"srs": "+init=epsg:3857",
"advanced": {},
"name": "landuse"
},
{
"geometry": "linestring",
"extent": [
-3.2290317,
51.799255,
-2.2551373,
52.4054663
],
"Datasource": {
"type": "postgis",
"table": "(\nselect *\nfrom planet_osm_line\nwhere waterway in ('river','stream','canal','drain','ditch')\n)\nas waterways",
"key_field": "",
"geometry_field": "",
"extent_cache": "dynamic",
"extent": "",
"dbname": "gis"
},
"id": "waterways",
"class": "",
"srs-name": "custom",
"srs": "+init=epsg:3857",
"advanced": {},
"name": "waterways"
},
{
"geometry": "polygon",
"extent": [
-3.1318318,
51.792036,
-2.2744444,
52.405986
],
"Datasource": {
"type": "postgis",
"table": "(\nselect way, planet_osm_polygon.natural, waterway\nfrom planet_osm_polygon\nwhere planet_osm_polygon.natural = 'water' or\nwaterway = 'water'\n)\nas water",
"key_field": "",
"geometry_field": "",
"extent_cache": "dynamic",
"extent": "",
"dbname": "gis",
"id": "water",
"project": "gb-leisure",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over"
},
"id": "water",
"class": "",
"srs-name": "custom",
"srs": "+init=epsg:3857",
"advanced": {},
"name": "water"
},
{
"geometry": "linestring",
"extent": [
-3.2290317,
51.799255,
-2.2551373,
52.4054663
],
"Datasource": {
"type": "postgis",
"table": "(\nselect way, barrier\nfrom planet_osm_line\nwhere barrier in ('fence','hedge','wall')\n)\nas boundaries",
"key_field": "",
"geometry_field": "",
"extent_cache": "dynamic",
"extent": "",
"dbname": "gis"
},
"id": "boundaries",
"class": "",
"srs-name": "custom",
"srs": "+init=epsg:3857",
"advanced": {},
"name": "boundaries"
},
{
"geometry": "linestring",
"extent": [
-3.2290317,
51.799255,
-2.2551373,
52.4054663
],
"Datasource": {
"type": "postgis",
"table": "(\nselect way, highway, tracktype, z_order\nfrom planet_osm_line\nwhere highway in ('motorway','motorway_link',\n'trunk','trunk_link','primary','primary_link',\n'secondary','secondary_link','tertiary','tertiary_link',\n'unclassified','residential','service','track')\norder by z_order\n)\nas highway",
"key_field": "",
"geometry_field": "",
"extent_cache": "dynamic",
"extent": "",
"dbname": "gis",
"id": "roads",
"project": "gb-leisure",
"srs": "+init=epsg:3857"
},
"id": "roads",
"class": "",
"srs-name": "custom",
"srs": "+init=epsg:3857",
"advanced": {},
"name": "roads"
},
{
"geometry": "linestring",
"extent": [
-3.2290317,
51.799255,
-2.2551373,
52.4054663
],
"Datasource": {
"type": "postgis",
"table": "(\nselect way, railway\nfrom planet_osm_line\nwhere railway = 'rail'\n)\nas railway",
"key_field": "",
"geometry_field": "",
"extent_cache": "dynamic",
"extent": "",
"dbname": "gis"
},
"id": "railway",
"class": "",
"srs-name": "custom",
"srs": "+init=epsg:3857",
"advanced": {},
"name": "railway"
},
{
"geometry": "polygon",
"extent": [
-3.1318318,
51.792036,
-2.2744444,
52.405986
],
"Datasource": {
"type": "postgis",
"table": "(\nselect way, building, amenity\nfrom planet_osm_polygon\nwhere building != 'no'\n)\nas buildings",
"key_field": "",
"geometry_field": "",
"extent_cache": "dynamic",
"extent": "",
"dbname": "gis",
"id": "buildings",
"project": "gb-leisure",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over"
},
"id": "buildings",
"class": "",
"srs-name": "custom",
"srs": "+init=epsg:3857",
"advanced": {},
"name": "buildings"
},
{
"geometry": "linestring",
"extent": [
-3.2290317,
51.799255,
-2.2551373,
52.4054663
],
"Datasource": {
"type": "postgis",
"table": "(\nselect way, highway, designation, foot, access\nfrom planet_osm_line\nwhere highway in ('footway','bridleway','cycleway','path') or\ndesignation in ('public_footpath','public_bridleway',\n'restricted_byway','byway_open_to_all_traffic')\n)\nas rightsofway",
"key_field": "",
"geometry_field": "",
"extent_cache": "dynamic",
"extent": "",
"dbname": "gis",
"id": "paths",
"project": "gb-leisure",
"srs": "+init=epsg:3857"
},
"id": "paths",
"class": "",
"srs-name": "custom",
"srs": "+init=epsg:3857",
"advanced": {},
"name": "paths"
},
{
"geometry": "linestring",
"extent": [
-2.585976822676941,
52.14682951134574,
-2.4407307214808047,
52.23736662661617
],
"id": "contours",
"class": "",
"Datasource": {
"file": "/home/greg/Documents/openstreetmap/data/so-contours/SO65_line.shp",
"type": "shape"
},
"layer": null,
"srs-name": "custom",
"srs": "+init=epsg:27700",
"advanced": {},
"name": "contours"
},
{
"geometry": "point",
"extent": [
-3.1318318,
51.792036,
-2.2744444,
52.405986
],
"Datasource": {
"type": "postgis",
"table": "(\n(select way, place, landuse, amenity, religion, name\nfrom planet_osm_point\nwhere place in ('city','town','suburb','neighbourhood','village','hamlet',\n'isolated_dwelling','farm','island','islet','locality') or\nlanduse = 'farmyard' or\namenity in ('school','pub') or\n(amenity = 'place_of_worship' and religion='christian')\norder by case\nwhen place = 'city' then 100\nwhen place = 'town' then 90\nwhen place = 'suburb' then 80\nwhen place = 'neighbourhood' then 70\nwhen place in ('island','islet') then 60\nwhen place in ('village','hamlet') then 50\nwhen place = 'locality' then 40\nwhen amenity = 'place_of_worship' then 30\nwhen amenity = 'pub' then 20\nwhen place = 'school' then 10\nwhen place in ('isolated_dwelling','farm') or landuse='farmyard' then 0\nend)\nunion\n(select way, place, landuse, amenity, religion, name\nfrom planet_osm_polygon\nwhere place in ('city','town','suburb','neighbourhood','village','hamlet',\n'isolated_dwelling','farm','island','islet','locality') or\nlanduse = 'farmyard' or\namenity in ('school','pub') or\n(amenity = 'place_of_worship' and religion='christian')\norder by case\nwhen place = 'city' then 100\nwhen place = 'town' then 90\nwhen place = 'suburb' then 80\nwhen place = 'neighbourhood' then 70\nwhen place in ('island','islet') then 60\nwhen place in ('village','hamlet') then 50\nwhen place = 'locality' then 40\nwhen amenity = 'place_of_worship' then 30\nwhen amenity = 'pub' then 20\nwhen place = 'school' then 10\nwhen place in ('isolated_dwelling','farm') or landuse='farmyard' then 0\nend)\n)\nas labels",
"key_field": "",
"geometry_field": "",
"extent_cache": "dynamic",
"extent": "",
"dbname": "gis",
"id": "labels",
"project": "gb-leisure",
"srs": "+init=epsg:3857"
},
"id": "labels",
"class": "",
"srs-name": "custom",
"srs": "+init=epsg:3857",
"advanced": {},
"name": "labels"
},
{
"geometry": "polygon",
"extent": [
-7.55715989372837,
49.76680722270928,
2.7814598620646507,
60.822590112656144
],
"id": "grid",
"class": "",
"Datasource": {
"file": "/home/greg/Documents/openstreetmap/data/OSGB_Grids/Shapefile/OSGB_Grid_1km.shp",
"id": "grid",
"project": "gb-leisure",
"srs": "",
"type": "shape"
},
"layer": null,
"srs-name": "custom",
"srs": "+init=epsg:27700",
"advanced": {
"type": "shape"
},
"name": "grid"
}
],
"scale": 1,
"metatile": 2,
"name": "GB Leisure",
"description": "",
"attribution": ""
}