source: subversion/applications/rendering/nor-hikingmap/layer-symbols-hiking.xml.ent @ 22526

Last change on this file since 22526 was 22526, checked in by vibrog, 9 years ago

Fix peak symbol background transparency

File size: 9.5 KB
Line 
1<Style name="symbols-landmarks">
2  <Rule>
3    &maxscale_zoom14;
4    <Filter>([man_made]='tower' and not [tourism]='viewpoint') or [man_made]='mast' or [amenity]='hunting_stand' or [man_made]='lighthouse' or [man_made]='windmill' or [man_made]='power_wind' or ([power]='generator' and [power_source] = 'wind')</Filter>
5    <PointSymbolizer file="&symbols;/tower.png"
6       width="11" height="11" type="png" allow_overlap="false"/>
7  </Rule>
8  <Rule>
9    &maxscale_zoom14;
10    <Filter>[man_made]='cairn' or [historic]='monument' or [historic]='memorial'</Filter>
11    <PointSymbolizer file="&symbols;/cairn.png"
12       width="11" height="11" type="png" allow_overlap="false"/>
13  </Rule>
14  <Rule>
15    &maxscale_zoom14;
16    <Filter>[natural]='tree'</Filter>
17    <PointSymbolizer file="&symbols;/tree.png"
18       width="8" height="8" type="png" allow_overlap="false"/>
19  </Rule>
20  <Rule>
21    &maxscale_zoom14;
22    <Filter>[building]='cabin' and not ([access]='permissive' or [access]='public' or [access]='emergency' or [access]='yes')</Filter>
23    <PointSymbolizer file="&symbols;/building.png"
24       width="5" height="5" type="png" allow_overlap="false"/>
25  </Rule>
26  <Rule>
27    &maxscale_zoom14;
28    <Filter>[historic]='ruins'</Filter>
29    <PointSymbolizer file="&symbols;/ruin.png"
30       width="5" height="5" type="png" allow_overlap="false"/>
31  </Rule>
32<!--
33  <Rule>
34    &maxscale_zoom9;
35    &minscale_zoom10;
36    <Filter>[natural]='peak' and [ele] &gt;= 2000</Filter>
37    <PointSymbolizer file="&symbols;/peak.png"
38       width="6" height="6" type="png"/>
39  </Rule>
40-->
41  <Rule>
42    &maxscale_zoom14;
43    &minscale_zoom16;
44    <Filter>[natural]='peak'</Filter>
45    <PointSymbolizer file="&symbols;/peak.png"
46       width="6" height="6" type="png"/>
47  </Rule>
48</Style>
49
50<Style name="symbols-sights">
51  <Rule>
52    &maxscale_zoom14;
53    <Filter>[natural]='cave_entrance'</Filter>
54    <PointSymbolizer file="&symbols;/cave.png"
55       width="15" height="15" type="png" allow_overlap="false"/>
56  </Rule>
57  <Rule>
58    &maxscale_zoom14;
59    <Filter>[man_made]='mineshaft' and ([access]='public' or [access]='')</Filter>
60    <PointSymbolizer file="&symbols;/mine.png"
61       width="15" height="15" type="png" allow_overlap="false"/>
62  </Rule>
63  <Rule>
64    &maxscale_zoom14;
65    <Filter>[waterway]='waterfall'</Filter>
66    <PointSymbolizer file="&symbols;/waterfall.png"
67       width="15" height="15" type="png" allow_overlap="false"/>
68  </Rule>
69  <Rule>
70    &maxscale_zoom16;
71    <Filter>[tourism]='information' and [board_type]='nature'</Filter>
72    <PointSymbolizer file="&symbols;/natureboard.png"
73       width="15" height="15" type="png" allow_overlap="false"/>
74  </Rule>
75  <Rule>
76    &maxscale_zoom13;
77    <Filter>[tourism]='viewpoint' and not ([man_made]='tower')</Filter>
78    <PointSymbolizer file="&symbols;/viewpoint.png"
79       width="15" height="15" type="png" allow_overlap="false"/>
80  </Rule>
81  <Rule>
82    &maxscale_zoom13;
83    <Filter>[tourism]='viewpoint' and [man_made]='tower'</Filter>
84    <PointSymbolizer file="&symbols;/viewtower.png"
85       width="15" height="15" type="png" allow_overlap="false"/>
86  </Rule>
87  <Rule>
88    &maxscale_zoom14;
89    <Filter>[amenity]='place_of_worship' and not ([hiking]='yes')</Filter>
90    <PointSymbolizer file="&symbols;/church.png"
91       width="15" height="15" type="png" allow_overlap="false"/>
92  </Rule>
93  <Rule>
94    &maxscale_zoom12;
95    <Filter>[amenity]='place_of_worship' and [hiking]='yes'</Filter>
96    <PointSymbolizer file="&symbols;/sportschapel.png"
97       width="15" height="15" type="png" allow_overlap="false"/>
98  </Rule>
99  <Rule>
100    &maxscale_zoom15;
101    <Filter>[historic]='archaeological_site' or [historic]='yes'</Filter>
102    <PointSymbolizer file="&symbols;/relic.png"
103       width="15" height="15" type="png" allow_overlap="false"/>
104  </Rule>
105  <Rule>
106    &maxscale_zoom14;
107    <Filter>[natural]='beach'</Filter>
108    <PointSymbolizer file="&symbols;/beach.png"
109       width="15" height="15" type="png" allow_overlap="false"/>
110  </Rule>
111</Style>
112
113<Style name="symbols-trailheads">
114  <Rule>
115    &maxscale_zoom13;
116    <Filter>[amenity]='parking' and [hiking]='yes'</Filter>
117    <PointSymbolizer file="&symbols;/parking.png"
118       width="15" height="15" type="png" allow_overlap="false"/>
119  </Rule>
120  <Rule>
121    &maxscale_zoom15;
122    <Filter>[amenity]='parking' and not ([access]='private')</Filter>
123    <PointSymbolizer file="&symbols;/parking.png"
124       width="15" height="15" type="png" allow_overlap="false"/>
125  </Rule>
126  <Rule>
127    &maxscale_zoom13;
128    <Filter>[railway]='station'</Filter>
129    <PointSymbolizer file="&symbols;/railwaystation.png"
130       width="15" height="15" type="png" allow_overlap="false"/>
131  </Rule>
132  <Rule>
133    &maxscale_zoom15;
134    <Filter>[highway]='bus_stop' or [amenity]='bus_station'</Filter>
135    <PointSymbolizer file="&symbols;/bus.png"
136       width="15" height="15" type="png" allow_overlap="false"/>
137  </Rule>
138</Style>
139
140<Style name="symbols-cabins">
141  <Rule>
142    &maxscale_zoom7;
143    <Filter>([tourism]='guest_house' or [tourism]='hostel' or [tourism]='alpine_hut') and [operator]='Den Norske Turistforening'</Filter>
144    <PointSymbolizer file="&symbols;/cabin-staffedlodge.png"
145       width="15" height="15" type="png" allow_overlap="false"/>
146  </Rule>
147  <Rule>
148    &maxscale_zoom8;
149    <Filter>([building]='cabin' or [tourism]='cabin') and [service]='self' and [operator]='Den Norske Turistforening'</Filter>
150    <PointSymbolizer file="&symbols;/cabin-selfservice.png"
151       width="15" height="15" type="png" allow_overlap="false"/>
152  </Rule>
153  <Rule>
154    &maxscale_zoom9;
155    <Filter>([building]='cabin' or [tourism]='cabin') and [service]='no' and [operator]='Den Norske Turistforening'</Filter>
156    <PointSymbolizer file="&symbols;/cabin-unprovisioned.png"
157       width="15" height="15" type="png" allow_overlap="false"/>
158  </Rule>
159  <Rule>
160    &maxscale_zoom12;
161    <Filter>(([building]='cabin' or [tourism]='cabin') and ([access]='permissive' or [access]='public' or [access]='emergency' or [access]='yes')) or [tourism]='basic_hut' or [tourism]='wilderness_hut'</Filter>
162    <PointSymbolizer file="&symbols;/shelter.png"
163       width="15" height="15" type="png" allow_overlap="false"/>
164  </Rule>
165  <Rule>
166    &maxscale_zoom13;
167    <Filter>[building]='lean_to' or [tourism]='lean_to' or [amenity]='shelter'</Filter>
168    <PointSymbolizer file="&symbols;/leanto.png"
169       width="15" height="15" type="png" allow_overlap="false"/>
170  </Rule>
171  <Rule>
172    &maxscale_zoom12;
173    <Filter>[tourism]='hotel' and [hiking]='yes'</Filter>
174    <PointSymbolizer file="&symbols;/hotel.png"
175       width="15" height="15" type="png" allow_overlap="false"/>
176  </Rule>
177</Style>
178
179<Style name="symbols-eating">
180  <Rule>
181    &maxscale_zoom13;
182    <Filter>[amenity]='cafe'</Filter>
183    <PointSymbolizer file="&symbols;/cafe.png"
184       width="15" height="15" type="png" allow_overlap="false"/>
185  </Rule>
186  <Rule>
187    &maxscale_zoom15;
188    <Filter>[amenity]='bbq'</Filter>
189    <PointSymbolizer file="&symbols;/fireplace.png"
190       width="15" height="15" type="png" allow_overlap="false"/>
191  </Rule>
192  <Rule>
193    &maxscale_zoom15;
194    <Filter>[leisure]='picnic_table' or [tourism]='picnic_site'</Filter>
195    <PointSymbolizer file="&symbols;/picnicsite.png"
196       width="15" height="15" type="png" allow_overlap="false"/>
197  </Rule>
198</Style>
199
200<Style name="symbols-signs">
201  <Rule>
202    &maxscale_zoom15;
203    <Filter>[tourism]='information' and [information]='map' and ([hiking]='yes' or [ski]='yes')</Filter>
204    <PointSymbolizer file="&symbols;/information.png"
205       width="15" height="15" type="png" allow_overlap="false"/>
206  </Rule>
207  <Rule>
208    &maxscale_zoom16;
209    <Filter>[tourism]='information' and [information]='guidepost' and ([hiking]='yes' or [ski]='yes')</Filter>
210    <PointSymbolizer file="&symbols;/signpost.png"
211       width="12" height="16" type="png" allow_overlap="false"/>
212  </Rule>
213</Style>
214
215<Layer name="symbols" status="on" srs="&osm2pgsql_projection;">
216  <StyleName>symbols-landmarks</StyleName>
217  <StyleName>symbols-sights</StyleName>
218  <StyleName>symbols-trailheads</StyleName>
219  <StyleName>symbols-eating</StyleName>
220  <StyleName>symbols-signs</StyleName>
221  <StyleName>symbols-cabins</StyleName>
222  <Datasource>
223    <Parameter name="table">
224    (select *
225     from &prefix;_point
226     where man_made in ('cairn','tower','mast','lighthouse','power_wind','windmill')
227        or amenity in ('shelter','cafe','bbq','place_of_worship','parking','bus_station','hunting_stand')
228        or historic in ('monument','memorial','ruins','archaeological_site','yes')
229        or tourism in ('viewpoint','information','cabin','guest_house','alpine_hut','hostel','hotel','lean_to','picnic_site','basic_hut','wilderness_hut')
230        or "natural" in ('peak','cave_entrance','tree','beach')
231        or (power='generator' and power_source='wind')
232        or highway='bus_stop'
233        or railway='station'
234        or waterway='waterfall'
235        or leisure in ('picnic_table')
236        or building in ('cabin','lean_to')
237    ) as symbols</Parameter>
238    &datasource-settings;
239  </Datasource>
240</Layer>
241<Layer name="symbols-poly" status="on" srs="&osm2pgsql_projection;">
242  <StyleName>symbols-landmarks</StyleName>
243  <StyleName>symbols-sights</StyleName>
244  <StyleName>symbols-trailheads</StyleName>
245  <StyleName>symbols-eating</StyleName>
246  <Datasource>
247    <Parameter name="table">
248    (select *
249     from &prefix;_polygon
250     where amenity in ('parking','bus_station')
251        or "natural"='beach'
252        or historic in ('monument','memorial','ruins','archaeological_site')
253        or tourism in ('picnic_site')
254    ) as symbols</Parameter>
255    &datasource-settings;
256  </Datasource>
257</Layer>
Note: See TracBrowser for help on using the repository browser.