source: subversion/applications/rendering/mapnik/inc/layer-amenity-points.xml.inc @ 19258

Last change on this file since 19258 was 19258, checked in by stevechilton, 10 years ago

add 6 shop types

File size: 11.0 KB
Line 
1<Style name="points">
2     <Rule>
3      &maxscale_zoom13;
4      <Filter>[tourism]='alpine_hut'</Filter>
5      <PointSymbolizer file="&symbols;/alpinehut.p.16.png" type="png" width="16" height="16" />
6    </Rule>
7    <Rule>
8      &maxscale_zoom13;
9      <Filter>[amenity]='shelter'</Filter>
10      <PointSymbolizer file="&symbols;/shelter2.p.16.png" type="png" width="16" height="16" />
11    </Rule>
12    <Rule>
13      &maxscale_zoom17;
14      <Filter>[amenity]='atm'</Filter>
15      <PointSymbolizer file="&symbols;/atm2.p.16.png" type="png" width="16" height="16" />
16    </Rule>
17    <Rule>
18      &maxscale_zoom17;
19      <Filter>[amenity]='bank'</Filter>
20      <PointSymbolizer file="&symbols;/bank2.p.16.png" type="png" width="16" height="16" />
21    </Rule>
22    <Rule>
23      &maxscale_zoom17;
24      <Filter>[amenity]='bar'</Filter>
25      <PointSymbolizer file="&symbols;/bar.p.20.png" type="png" width="20" height="20" />
26    </Rule>
27    <Rule>
28      &maxscale_zoom17;
29      <Filter>[amenity]='bicycle_rental'</Filter>
30      <PointSymbolizer file="&symbols;/rental_bicycle.p.20.png" type="png" width="20" height="20" />
31    </Rule>
32    <Rule>
33      &maxscale_zoom16;
34      &minscale_zoom16;
35      <Filter>[amenity]='bus_stop' or [highway]='bus_stop'</Filter>
36      <PointSymbolizer file="&symbols;/bus_stop_small.png" type="png" width="3" height="3" />
37    </Rule>
38    <Rule>
39      &maxscale_zoom17;
40      <Filter>[amenity]='bus_stop' or [highway]='bus_stop'</Filter>
41      <PointSymbolizer file="&symbols;/bus_stop.p.12.png" type="png" width="12" height="12" />
42    </Rule>
43    <Rule>
44      &maxscale_zoom16;
45      <Filter>[amenity]='bus_station'</Filter>
46      <PointSymbolizer file="&symbols;/bus_station.n.16.png" type="png" width="16" height="16" allow_overlap="false"/>
47    </Rule>
48    <Rule>
49    &maxscale_zoom17;
50    <Filter>[highway]='traffic_signals'</Filter>
51    <PointSymbolizer file="&symbols;/traffic_light.png" type="png" width="16" height="16" />
52    </Rule>
53    <Rule>
54      &maxscale_zoom17;
55      <Filter>[amenity]='cafe'</Filter>
56      <PointSymbolizer file="&symbols;/cafe.p.16.png" type="png" width="16" height="16" />
57    </Rule>
58    <Rule>
59      &maxscale_zoom16;
60      <Filter>[tourism]='camp_site'</Filter>
61      <PointSymbolizer file="&symbols;/camping.n.16.png" type="png" width="16" height="16" />
62    </Rule>
63    <Rule>
64      &maxscale_zoom16;
65      <Filter>[tourism]='caravan_site'</Filter>
66      <PointSymbolizer file="&symbols;/caravan_park.p.24.png" type="png" width="24" height="24" />
67    </Rule>
68    <Rule>
69      &maxscale_zoom16;
70      <Filter>[amenity]='car_sharing'</Filter>
71      <PointSymbolizer file="&symbols;/car_share.p.16.png" type="png" width="16" height="16" allow_overlap="false"/>
72    </Rule>
73     <Rule>
74      &maxscale_zoom17;
75      <Filter>[amenity]='cinema'</Filter>
76      <PointSymbolizer file="&symbols;/cinema.p.24.png" type="png" width="24" height="24" />
77    </Rule>
78    <Rule>
79      &maxscale_zoom17;
80      <Filter>[amenity]='fire_station'</Filter>
81      <PointSymbolizer file="&symbols;/firestation.p.16.png" type="png" width="16" height="16" />
82    </Rule>
83    <Rule>
84      &maxscale_zoom17;
85      <Filter>[amenity]='fuel'</Filter>
86      <PointSymbolizer file="&symbols;/fuel.p.16.png" type="png" width="16" height="16" />
87    </Rule>
88    <Rule>
89      &maxscale_zoom17;
90      <Filter>[tourism]='guest_house'</Filter>
91      <PointSymbolizer file="&symbols;/guest_house.p.16.png" type="png" width="16" height="16" />
92    </Rule>
93    <Rule>
94      &maxscale_zoom15;
95      <Filter>[amenity]='hospital'</Filter>
96      <PointSymbolizer file="&symbols;/hospital.p.16.png" type="png" width="16" height="16" />
97    </Rule>
98    <Rule>
99      &maxscale_zoom17;
100      <Filter>[tourism]='hostel'</Filter>
101      <PointSymbolizer file="&symbols;/hostel.p.20.png" type="png" width="20" height="20" />
102    </Rule>
103    <Rule>
104      &maxscale_zoom17;
105      <Filter>[tourism]='hotel'</Filter>
106      <PointSymbolizer file="&symbols;/hotel2.p.20.png" type="png" width="20" height="20" />
107    </Rule>
108    <Rule>
109      &maxscale_zoom17;
110      <Filter>[amenity]='embassy'</Filter>
111      <PointSymbolizer file="&symbols;/embassy.png" type="png" width="12" height="12" />
112    </Rule>
113    <Rule>
114      &maxscale_zoom17;
115      <Filter>[amenity]='library'</Filter>
116      <PointSymbolizer file="&symbols;/library.p.20.png" type="png" width="20" height="20" />
117    </Rule>
118    <Rule>
119      &maxscale_zoom17;
120      <Filter>[man_made]='mast'</Filter>
121      <PointSymbolizer file="&symbols;/communications.p.20.png" type="png" width="20" height="20" />
122    </Rule>
123    <Rule>
124      &maxscale_zoom17;
125      <Filter>[tourism]='museum'</Filter>
126      <PointSymbolizer file="&symbols;/museum.p.16.png" type="png" width="16" height="16" />
127    </Rule>
128    <Rule>
129      &maxscale_zoom15;
130      <Filter>[amenity]='parking' and ([access] = 'public' or not [access] &lt;&gt; '')</Filter>
131      <PointSymbolizer file="&symbols;/parking.p.16.png" type="png" width="16" height="16" allow_overlap="false"/>
132    </Rule>
133    <Rule>
134      &maxscale_zoom17;
135      <Filter>[amenity]='pharmacy'</Filter>
136      <PointSymbolizer file="&symbols;/pharmacy.p.16.png" type="png" width="16" height="16" />
137    </Rule>
138    <Rule>
139      &maxscale_zoom16;
140      <Filter>[amenity]='place_of_worship' and [religion] = 'christian'</Filter>
141      <PointSymbolizer file="&symbols;/christian3.p.14.png" type="png" width="14" height="14" allow_overlap="false"/>
142     </Rule>
143     <Rule>
144      &maxscale_zoom16;
145      <Filter>[amenity]='place_of_worship' and [religion] = 'muslim'</Filter>
146      <PointSymbolizer file="&symbols;/islamic3.p.16.png" type="png" width="16" height="16" allow_overlap="false"/>
147     </Rule>
148     <Rule>
149      &maxscale_zoom16;
150      <Filter>[amenity]='place_of_worship' and [religion] = 'sikh'</Filter>
151      <PointSymbolizer file="&symbols;/sikh3.p.16.png" type="png" width="16" height="16" allow_overlap="false"/>
152     </Rule>
153     <Rule>
154      &maxscale_zoom16;
155      <Filter>[amenity]='place_of_worship' and [religion] = 'jewish'</Filter>
156      <PointSymbolizer file="&symbols;/jewish3.p.16.png" type="png" width="16" height="16" allow_overlap="false"/>
157     </Rule>
158     <Rule>
159      &maxscale_zoom16;
160      <Filter>[amenity]='place_of_worship'</Filter>
161      <PointSymbolizer file="&symbols;/place_of_worship3.p.16.png" type="png" width="16" height="16" allow_overlap="false"/>
162     </Rule>
163     <Rule>
164      &maxscale_zoom17;
165      <Filter>[amenity]='police'</Filter>
166      <PointSymbolizer file="&symbols;/police.p.16.png" type="png" width="16" height="16" />
167    </Rule>
168    <Rule>
169      &maxscale_zoom17;
170      <Filter>[amenity]='post_box'</Filter>
171      <PointSymbolizer file="&symbols;/post_box.p.16.png" type="png" width="16" height="16" />
172    </Rule>
173    <Rule>
174      &maxscale_zoom17;
175      <Filter>[amenity]='post_office'</Filter>
176      <PointSymbolizer file="&symbols;/post_office.p.16.png" type="png" width="16" height="16" />
177    </Rule>
178    <Rule>
179      &maxscale_zoom16;
180      <Filter>[amenity]='pub'</Filter>
181      <PointSymbolizer file="&symbols;/pub.p.16.png" type="png" width="16" height="16" />
182    </Rule>
183    <Rule>
184      &maxscale_zoom16;
185      <Filter>[amenity]='recycling'</Filter>
186      <PointSymbolizer file="&symbols;/recycling.p.16.png" type="png" width="16" height="16" />
187    </Rule>
188    <Rule>
189      &maxscale_zoom17;
190      <Filter>[amenity]='restaurant'</Filter>
191      <PointSymbolizer file="&symbols;/restaurant.p.16.png" type="png" width="16" height="16" />
192    </Rule>
193    <Rule>
194      &maxscale_zoom17;
195      <Filter>[amenity]='fast_food'</Filter>
196      <PointSymbolizer file="&symbols;/fast_food.png" type="png" width="16" height="16" />
197    </Rule>
198    <Rule>
199      &maxscale_zoom17;
200      <Filter>[amenity]='telephone'</Filter>
201      <PointSymbolizer file="&symbols;/telephone.p.16.png" type="png" width="16" height="16" />
202    </Rule>
203    <Rule>
204      &maxscale_zoom17;
205      <Filter>[amenity]='theatre'</Filter>
206      <PointSymbolizer file="&symbols;/theatre.p.20.png" type="png" width="20" height="20" />
207    </Rule>
208    <Rule>
209      &maxscale_zoom17;
210      <Filter>[amenity]='toilets'</Filter>
211      <PointSymbolizer file="&symbols;/toilets.p.20.png" type="png" width="20" height="20" />
212    </Rule>
213    <Rule>
214      &maxscale_zoom16;
215      <Filter>[tourism]='viewpoint'</Filter>
216      <PointSymbolizer file="&symbols;/view_point.p.16.png" type="png" width="16" height="16" />
217    </Rule>
218    <Rule>
219      &maxscale_zoom17;
220      <Filter>[man_made]='water_tower'</Filter>
221      <PointSymbolizer file="&symbols;/tower_water.p.20.png" type="png" width="20" height="20" />
222    </Rule>
223    <Rule>
224      &maxscale_zoom16;
225      <Filter>[shop]='supermarket'</Filter>
226      <PointSymbolizer file="&symbols;/shop_supermarket.p.16.png" type="png" width="16" height="16" />
227    </Rule>
228    <Rule>
229      &maxscale_zoom17;
230      <Filter>[shop]='bakery'</Filter>
231      <PointSymbolizer file="&symbols;/shop_bakery.p.16.png" type="png" width="16" height="16" />
232    </Rule>
233    <Rule>
234      &maxscale_zoom17;
235      <Filter>[shop]='clothes'</Filter>
236      <PointSymbolizer file="&symbols;/shop_clothes.p.16.png" type="png" width="16" height="16" />
237    </Rule>
238    <Rule>
239      &maxscale_zoom17;
240      <Filter>[shop]='convenience'</Filter>
241      <PointSymbolizer file="&symbols;/shop_convenience.p.16.png" type="png" width="16" height="16" />
242    </Rule>
243    <Rule>
244      &maxscale_zoom17;
245      <Filter>[shop]='diy'</Filter>
246      <PointSymbolizer file="&symbols;/shop_diy.p.16.png" type="png" width="16" height="16" />
247    </Rule>
248    <Rule>
249      &maxscale_zoom17;
250      <Filter>[shop]='hairdresser'</Filter>
251      <PointSymbolizer file="&symbols;/shop_hairdresser.p.16.png" type="png" width="16" height="16" />
252    </Rule>
253</Style>
254
255<Layer name="amenity-points" status="on" srs="&osm2pgsql_projection;">
256    <StyleName>points</StyleName>
257    <Datasource>
258      <Parameter name="table">
259      (select way,amenity,shop,tourism,highway,man_made,access,religion
260      from &prefix;_point
261      where amenity is not null
262         or shop is not null
263         or tourism in ('alpine_hut','camp_site','caravan_site','guest_house','hostel','hotel','museum','viewpoint')
264         or highway in ('bus_stop','traffic_signals')
265         or man_made in ('mast','water_tower')
266      ) as points</Parameter>
267      &datasource-settings;
268    </Datasource>
269</Layer>
270<Layer name="amenity-points-poly" status="on" srs="&osm2pgsql_projection;">
271    <StyleName>points</StyleName>
272    <Datasource>
273      <Parameter name="table">
274      (select way,amenity,shop,tourism,highway,man_made,access,religion
275      from &prefix;_polygon
276      where amenity is not null
277         or shop is not null
278         or tourism in ('alpine_hut','camp_site','caravan_site','guest_house','hostel','hotel','museum','viewpoint')
279         or highway in ('bus_stop','traffic_signals')
280         or man_made in ('mast','water_tower')
281      ) as points</Parameter>
282      &datasource-settings;
283    </Datasource>
284</Layer>
Note: See TracBrowser for help on using the repository browser.