-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.patch
227 lines (225 loc) · 5.53 KB
/
project.patch
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
--- ../openstreetmap-carto/project.mml 2020-02-24 21:39:01.873860673 +0100
+++ project.mml 2020-02-25 00:24:04.983242371 +0100
@@ -1,20 +1,20 @@
scale: 1
metatile: 2
-name: OpenStreetMap Carto
-description: A general-purpose OpenStreetMap mapnik style, in CartoCSS
+name: OpenHikeMap Carto
+description: A mapnik style for hiking maps, in CartoCSS
bounds: &world
- - -180
- - -85.05112877980659
- - 180
- - 85.05112877980659
+ - 11.5
+ - 46.4
+ - 12
+ - 46.8
center:
- - 0
- - 0
- - 4
+ - 11.75
+ - 46.6
+ - 10
format: png
interactivity: false
-minzoom: 0
-maxzoom: 22
+minzoom: 10
+maxzoom: 18
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"
# Various parts to be included later on
@@ -30,29 +30,39 @@
srs: "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
osm2pgsql: &osm2pgsql
type: "postgis"
- dbname: "gis"
+ dbname: "osm"
key_field: ""
geometry_field: "way"
extent: "-20037508,-20037508,20037508,20037508"
+ osm2pgsql_raster: &osm2pgsql_raster
+ type: "postgis"
+ dbname: "osm"
+ key_field: ""
+ raster_field: "rast"
+ extent: "-20037508,-20037508,20037508,20037508"
Stylesheet:
- - style.mss
- - fonts.mss
- - shapefiles.mss
- - landcover.mss
- - water.mss
- - water-features.mss
- - road-colors-generated.mss
+ - ../openstreetmap-carto/style.mss
+ - ../openstreetmap-carto/fonts.mss
+ - ../openstreetmap-carto/shapefiles.mss
+ - ../openstreetmap-carto/landcover.mss
+ - ../openstreetmap-carto/water.mss
+ - ../openstreetmap-carto/water-features.mss
+ - hill-shading.mss
+ - contour-lines.mss
+ - ../openstreetmap-carto/road-colors-generated.mss
- roads.mss
- - power.mss
- - placenames.mss
- - buildings.mss
- - stations.mss
- - amenity-points.mss
- - ferry-routes.mss
- - aerialways.mss
- - admin.mss
- - addressing.mss
+ - ../openstreetmap-carto/power.mss
+ - ../openstreetmap-carto/placenames.mss
+ - ../openstreetmap-carto/buildings.mss
+ - ../openstreetmap-carto/stations.mss
+ - ../openstreetmap-carto/amenity-points.mss
+ - ../openstreetmap-carto/ferry-routes.mss
+ - ../openstreetmap-carto/aerialways.mss
+ - ../openstreetmap-carto/admin.mss
+ - ../openstreetmap-carto/addressing.mss
+ - local-names.mss
+ - hiking.mss
Layer:
- id: landcover-low-zoom
geometry: polygon
@@ -342,6 +352,30 @@
) AS water_barriers_poly
properties:
minzoom: 13
+ - id: hill-shade
+ geometry: raster
+ srs: "+init=epsg:3857"
+ Datasource:
+ file: data/hill-shade.tif
+ type: gdal
+ properties:
+ minzoom: 12
+ - id: contour-lines-25
+ geometry: linestring
+ srs: "+init=epsg:3857"
+ Datasource:
+ file: data/contour-lines-25.shp
+ type: shape
+ properties:
+ minzoom: 15
+ - id: contour-lines-100
+ geometry: linestring
+ srs: "+init=epsg:3857"
+ Datasource:
+ file: data/contour-lines-100.shp
+ type: shape
+ properties:
+ minzoom: 13
- id: springs
geometry: point
<<: *extents
@@ -689,6 +723,24 @@
) AS highway_area_casing
properties:
minzoom: 14
+ - id: hiking-routes-halo
+ geometry: linestring
+ <<: *extents
+ Datasource:
+ <<: *osm2pgsql
+ table: |-
+ hiking_routes_halo_view
+ properties:
+ minzoom: 15
+ - id: hiking-paths-casing
+ geometry: linestring
+ <<: *extents
+ Datasource:
+ <<: *osm2pgsql
+ table: |-
+ hiking_paths_casing_view
+ properties:
+ minzoom: 15
- id: roads-casing
geometry: linestring
<<: *extents
@@ -817,6 +869,15 @@
) AS highway_area_fill
properties:
minzoom: 14
+ - id: hiking-paths-fill
+ geometry: linestring
+ <<: *extents
+ Datasource:
+ <<: *osm2pgsql
+ table: |-
+ hiking_paths_fill_view
+ properties:
+ minzoom: 15
- id: roads-fill
geometry: linestring
<<: *extents
@@ -1234,6 +1295,15 @@
) AS state_names
properties:
minzoom: 4
+ - id: local-names
+ geometry: linestring
+ <<: *extents
+ Datasource:
+ <<: *osm2pgsql
+ table: |-
+ local_names
+ properties:
+ minzoom: 12
- id: placenames-medium
geometry: point
<<: *extents
@@ -1304,9 +1374,10 @@
WHEN place = 'hamlet' THEN 5
WHEN place = 'quarter' THEN 6
WHEN place = 'neighbourhood' THEN 7
- WHEN place = 'isolated_dwelling' THEN 8
- WHEN place = 'farm' THEN 9
- WHEN place = 'square' THEN 10
+ WHEN place = 'locality' THEN 8
+ WHEN place = 'isolated_dwelling' THEN 9
+ WHEN place = 'farm' THEN 10
+ WHEN place = 'square' THEN 11
END ASC, length(name) DESC, name
) AS placenames_small
properties:
@@ -1771,6 +1842,33 @@
) AS roads_text_ref
properties:
minzoom: 13
+ - id: hiking-routes-ref
+ geometry: linestring
+ <<: *extents
+ Datasource:
+ <<: *osm2pgsql
+ table: |-
+ hiking_routes_ref_view
+ properties:
+ minzoom: 15
+ - id: hiking-routes-name
+ geometry: linestring
+ <<: *extents
+ Datasource:
+ <<: *osm2pgsql
+ table: |-
+ hiking_routes_name_view
+ properties:
+ minzoom: 15
+ - id: hiking-roads-text-ref
+ geometry: linestring
+ <<: *extents
+ Datasource:
+ <<: *osm2pgsql
+ table: |-
+ hiking_roads_text_ref
+ properties:
+ minzoom: 13
- id: roads-area-text-name
geometry: point
<<: *extents