-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.xml
246 lines (207 loc) · 8.28 KB
/
model.xml
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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[
<!ENTITY db_settings SYSTEM "db_settings">
]>
<Map background-color="#acf" srs="+proj=merc" >
<!-- <Map background-color="#efd" srs="+proj=lonlat"> -->
<Style name="areas">
<Rule>
<Filter>not [landuse]</Filter>
<PolygonSymbolizer fill="#dbdfcc" />
</Rule>
</Style>
<Style name="land-use">
<Rule>
<Filter>[landuse] = residential</Filter>
<PolygonSymbolizer fill="#ddd"/>
</Rule>
<Rule>
<Filter>[landuse] = farmland</Filter>
<PolygonSymbolizer fill='#c7deb4'/>
</Rule>
<Rule>
<Filter>[natural] = heath</Filter>
<PolygonSymbolizer fill="#cbd1af"/>
</Rule>
<Rule>
<Filter>[landuse] = forest or [natural] = wood</Filter>
<PolygonSymbolizer fill="#98b797"/>
</Rule>
<Rule>
<Filter>[natural] = beach</Filter>
<PolygonSymbolizer fill="#ffb"/>
</Rule>
<Rule>
<Filter>[natural] = wetland</Filter>
<PolygonSymbolizer fill="#cdca"/>
</Rule>
<Rule>
<Filter>[landuse] = military</Filter>
<PolygonSymbolizer fill="#faa" fill-opacity="0.5"/>
<LineSymbolizer stroke="#a44" stroke-width="2"/>
</Rule>
</Style>
<Style name="lines">
<Rule>
<LineSymbolizer stroke="#444444" stroke-width="1" />
</Rule>
</Style>
<Style name="waterway-lines">
<Rule>
<Filter>[waterway] = river</Filter>
<LineSymbolizer stroke="#79b" stroke-width="4"/>
</Rule>
<Rule>
<Filter>[waterway] = stream or [waterway] = drain</Filter>
<LineSymbolizer stroke="#acf" stroke-width="4"/>
</Rule>
</Style>
<Style name="water">
<Rule>
<Filter>[natural] = water or [tags].match('waterway')</Filter>
<PolygonSymbolizer fill="#acf"/>
</Rule>
<Rule>
<Filter>[natural] = bay or [natural] = strait or [natural] = gulf</Filter>
<PolygonSymbolizer fill="#acf"/>
</Rule>
</Style>
<Style name="roads-paths">
<Rule>
<Filter>[highway] = 'track'</Filter>
<LineSymbolizer stroke="#eed" stroke-width="3"/>
</Rule>
<Rule>
<Filter>[highway] = 'path' or [highway] = footway</Filter>
<LineSymbolizer stroke="#eed" stroke-width="3"/>
</Rule>
</Style>
<Style name="roads-misc">
<Rule>
<Filter>[highway] = 'unclassified'</Filter>
<LineSymbolizer stroke="#fff" stroke-width="4" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[highway] = 'service'</Filter>
<LineSymbolizer stroke="#fff" stroke-width = "3" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[highway] = 'tertiary' or [highway] = 'residential' or [highway] = 'living_street'</Filter>
<LineSymbolizer stroke="#fff" stroke-width="5" stroke-linecap="round"/>
<TextSymbolizer face-name="DejaVu Sans Condensed" size="9" fill="#000" halo-fill="#fff" halo-radius="1" placement="line" spacing="500">[name]</TextSymbolizer>
</Rule>
</Style>
<Style name="roads-national">
<Rule>
<Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
<LineSymbolizer stroke="#ff8" stroke-width="6"/>
<!-- <ShieldSymbolizer face-name="DejaVu Sans Condensed" size="15" file="icons/signs/road_dep.png" fill="#ddaa00" placement="line" spacing="500">[name]</ShieldSymbolizer> -->
<TextSymbolizer face-name="DejaVu Sans Condensed" size="11" fill="#000" halo-fill="#fff" halo-radius="1" placement="line" spacing="500">[name]</TextSymbolizer>
</Rule>
</Style>
<Style name="roads-outline">
<Rule>
<Filter>[highway] = 'path' or [highway] = footway</Filter>
<LineSymbolizer stroke="#a95" stroke-width="4"/>
</Rule>
<Rule>
<Filter>[highway] = 'track'</Filter>
<LineSymbolizer stroke="#a95" stroke-width="4"/>
</Rule>
<Rule>
<Filter>[highway] = 'unclassified'</Filter>
<LineSymbolizer stroke="#000" stroke-width="5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[highway] = 'tertiary' or [highway] = 'residential' or [highway] = 'living_street'</Filter>
<LineSymbolizer stroke="#000" stroke-width="6" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
<LineSymbolizer stroke="#a90" stroke-width="7" stroke-linecap="round"/>
</Rule>
</Style>
<Style name="buildings">
<Rule>
<Filter>[building] = 'yes'</Filter>
<PolygonSymbolizer fill="#999" />
<LineSymbolizer stroke="#888" stroke-width="1"/>
</Rule>
<Rule>
<Filter>[building] = 'church'</Filter>
<PolygonSymbolizer fill="#a97" />
<LineSymbolizer stroke="#775" stroke-width="1"/>
</Rule>
<!-- <Rule>
<Filter>[historic] = 'fort'</Filter>
<PolygonSymbolizer fill="#aa9" />
<LineSymbolizer stroke="#775" stroke-width="3"/>
</Rule> -->
<Rule>
<Filter>[building] = 'school'</Filter>
<PolygonSymbolizer fill="#889" />
<LineSymbolizer stroke="#448" stroke-width="1"/>
</Rule>
</Style>
<Style name="amenities">
<Rule>
<Filter>[amenity] = 'parking'</Filter>
<PolygonSymbolizer fill="#eee" />
</Rule>
</Style>
<Style name="hamlets">
<Rule>
<Filter>[place] = 'hamlet'</Filter>
<TextSymbolizer face-name="DejaVu Sans Condensed" size="11" fill="#000" halo-fill="#fff" halo-radius="1">[name]</TextSymbolizer>
<!-- <PointSymbolizer file="/home/herrcrazi/Images/svas.png" allow-overlap="yes" /> -->
</Rule>
</Style>
<!-- Polygon debug boxes -->
<Style name="debug">
<Rule>
<!-- <PolygonSymbolizer fill="#ff00ff" fill-opacity="0.01"/> -->
<LineSymbolizer stroke="#ff00ff" stroke-width="0.5"/>
</Rule>
</Style>
<!-- Generic PostGIS datasource -->
<Datasource name="postgis-kartenn">
&db_settings;
<Parameter name="srid">3857</Parameter>
</Datasource>
<!-- PostGis layers uses the Mercator projection -->
<Layer name="areas" srs="+init=epsg:3857">
<StyleName>areas</StyleName>
<StyleName>water</StyleName>
<StyleName>land-use</StyleName>
<Datasource base="postgis-kartenn">
<Parameter name="table">(select * from planet_osm_polygon) as landuse</Parameter>
</Datasource>
</Layer>
<Layer name="amenities" srs="+init=epsg:3857">
<StyleName>amenities</StyleName>
<Datasource base="postgis-kartenn">
<Parameter name="table">(select way,amenity,tags from planet_osm_polygon where amenity is not null) as buildings</Parameter>
</Datasource>
</Layer>
<Layer name="buildings" srs="+init=epsg:3857">
<StyleName>buildings</StyleName>
<Datasource base="postgis-kartenn">
<Parameter name="table">
(
SELECT way,name,building FROM planet_osm_polygon as p WHERE building IS NOT NULL
) as buildings
</Parameter>
</Datasource>
</Layer>
<!-- <Layer name="debug" srs="+init=epsg:3857">
<StyleName>areas</StyleName>
<StyleName>water</StyleName>
<StyleName>land-use</StyleName>
<StyleName>amenities</StyleName>
<StyleName>buildings</StyleName>
<StyleName>debug</StyleName>
<Datasource base="postgis-kartenn">
<Parameter name="table">(select * from planet_osm_polygon) as debug</Parameter>
</Datasource>
</Layer> -->
</Map>