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

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

Mapnik 0.7.1 simplification of PointSymbolizer? and add minimum version requirement

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