-
Notifications
You must be signed in to change notification settings - Fork 30
/
style.mml
203 lines (183 loc) · 8.83 KB
/
style.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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[
<!ENTITY epsg4326 "+proj=longlat +datum=WGS84">
<!ENTITY epsg900913 "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
<!ENTITY epsg900913_extent "-20037508,-20037508,20037508,20037508">
<!ENTITY osm_host "localhost">
<!ENTITY osm_port "5432">
<!ENTITY osm_name "planet_osm">
<!ENTITY osm_user "osm">
<!ENTITY osm_pass "">
]>
<Map srs="&epsg900913;">
<Stylesheet src="stylesheet.mss"/>
<Layer status="on" id="land-city" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password"></Parameter>
<Parameter name="table">coastline</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
</Datasource>
</Layer>
<Layer status="on" id="land" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password"></Parameter>
<Parameter name="table">coastline</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
</Datasource>
</Layer>
<Layer id="water-bodies" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="port">&osm_port;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password">&osm_pass;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
<Parameter name="table"><![CDATA[
(SELECT way,
name
FROM planet_osm_polygon
WHERE "natural" IN ('water', 'bay')
OR waterway IN ('riverbank')
ORDER BY z_order ASC, way_area DESC
) AS water]]></Parameter>
</Datasource>
</Layer>
<Layer id="processed-coast-shoreline" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password"></Parameter>
<Parameter name="table">coastline</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
</Datasource>
</Layer>
<Layer id="water-body-shorelines" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="port">&osm_port;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password">&osm_pass;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
<Parameter name="table"><![CDATA[
(SELECT way,
name
FROM planet_osm_polygon
WHERE "natural" IN ('water', 'bay')
OR waterway IN ('riverbank')
ORDER BY z_order ASC, way_area DESC
) AS water]]></Parameter>
</Datasource>
</Layer>
<!--
-->
<Layer id="buildings" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="port">&osm_port;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password">&osm_pass;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
<Parameter name="table">(SELECT way FROM planet_osm_polygon WHERE building IS NOT NULL) AS footprints</Parameter>
</Datasource>
</Layer>
<Layer id="z10-roads" class="roads" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="port">&osm_port;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password">&osm_pass;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
<Parameter name="table">planet_osm_line_z10</Parameter>
</Datasource>
</Layer>
<Layer id="z11-roads" class="roads" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="port">&osm_port;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password">&osm_pass;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
<Parameter name="table">planet_osm_line_z11</Parameter>
</Datasource>
</Layer>
<Layer id="z12-roads" class="roads" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="port">&osm_port;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password">&osm_pass;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
<Parameter name="table">planet_osm_line_z12</Parameter>
</Datasource>
</Layer>
<Layer id="z13-roads" class="roads" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="port">&osm_port;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password">&osm_pass;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
<Parameter name="table">planet_osm_line_z13</Parameter>
</Datasource>
</Layer>
<Layer id="z14-roads" class="roads" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="port">&osm_port;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password">&osm_pass;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
<Parameter name="table">planet_osm_line_z14</Parameter>
</Datasource>
</Layer>
<Layer id="z15plus-roads" class="roads" srs="&epsg900913;">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&osm_host;</Parameter>
<Parameter name="port">&osm_port;</Parameter>
<Parameter name="user">&osm_user;</Parameter>
<Parameter name="password">&osm_pass;</Parameter>
<Parameter name="dbname">&osm_name;</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">&epsg900913_extent;</Parameter>
<Parameter name="table">planet_osm_line_z15plus</Parameter>
</Datasource>
</Layer>
</Map>