source: subversion/applications/rendering/mapnik/inc/layer-amenity-symbols.xml.inc @ 18187

Last change on this file since 18187 was 18146, checked in by ldp, 10 years ago

Split amenity layer into symbols/stations/points for reasons of overhead

File size: 4.7 KB
Line 
1<Style name="symbols">
2    <Rule>
3      &maxscale_zoom9;
4      &minscale_zoom10;
5      <Filter>[aeroway]='airport'</Filter>
6      <PointSymbolizer file="&symbols;/airport.p.16.png" type="png" width="16" height="16" />
7      <TextSymbolizer name="name" fontset_name="bold-fonts" size="8" fill="#6692da" dy="-12" halo_radius="1" wrap_width="0"/>
8    </Rule>
9    <Rule>
10      &maxscale_zoom11;
11      &minscale_zoom12;
12      <Filter>[aeroway]='airport'</Filter>
13      <TextSymbolizer name="name" fontset_name="bold-fonts" size="9" fill="#6692da" halo_radius="1" wrap_width="0"/>
14    </Rule>
15    <Rule>
16      &maxscale_zoom10;
17      &minscale_zoom10;
18      <Filter>[aeroway]='aerodrome'</Filter>
19      <PointSymbolizer file="&symbols;/aerodrome.p.16.png" type="png" width="16" height="16" />
20      <TextSymbolizer name="name" fontset_name="oblique-fonts" size="8" fill="#6692da" dy="-12" halo_radius="1" wrap_width="0"/>
21    </Rule>
22    <Rule>
23      &maxscale_zoom11;
24      &minscale_zoom12;
25      <Filter>[aeroway]='aerodrome'</Filter>
26      <TextSymbolizer name="name" fontset_name="oblique-fonts" size="8" fill="#6692da" halo_radius="1" wrap_width="0"/>
27    </Rule>
28    <Rule>
29      &maxscale_zoom14;
30      &minscale_zoom15;
31      <Filter>[railway]='level_crossing'</Filter>
32      <PointSymbolizer file="&symbols;/level_crossing.png" type="png" width="7" height="7" />
33    </Rule>
34    <Rule>
35      &maxscale_zoom16;
36      <Filter>[railway]='level_crossing'</Filter>
37      <PointSymbolizer file="&symbols;/level_crossing2.png" type="png" width="11" height="11" />
38    </Rule>
39    <Rule>
40      &maxscale_zoom15;
41      <Filter>[man_made]='lighthouse'</Filter>
42      <PointSymbolizer file="&symbols;/lighthouse.p.20.png" type="png" width="20" height="20" />
43    </Rule>
44    <Rule>
45      &maxscale_zoom11;
46      <Filter>[natural]='peak'</Filter>
47      <PointSymbolizer file="&symbols;/peak.png" type="png" width="8" height="8" />
48    </Rule>
49    <Rule>
50      &maxscale_zoom14;
51      <Filter>[natural]='spring'</Filter>
52      <PointSymbolizer file="&symbols;/spring.png" type="png" width="5" height="7" />
53    </Rule>
54    <Rule>
55      &maxscale_zoom16;
56      <Filter>[natural]='tree'</Filter>
57      <PointSymbolizer file="&symbols;/tree.png" type="png" width="3" height="3" />
58    </Rule>
59    <Rule>
60      &maxscale_zoom15;
61      <Filter>[man_made]='power_wind' or ([power]='generator' and [power_source] = 'wind')</Filter>
62      <PointSymbolizer file="&symbols;/power_wind.png" type="png" width="16" height="26" />
63    </Rule>
64    <Rule>
65      &maxscale_zoom16;
66      <Filter>[man_made]='windmill'</Filter>
67      <PointSymbolizer file="&symbols;/windmill.png" type="png" width="10" height="15" />
68    </Rule>
69    <Rule>
70      &maxscale_zoom17;
71      <Filter>[man_made]='mast'</Filter>
72      <PointSymbolizer file="&symbols;/communications.p.20.png" type="png" width="20" height="20" />
73    </Rule>
74    <Rule>
75      &maxscale_zoom15;
76      <Filter>[highway]='mini_roundabout'</Filter>
77      <PointSymbolizer file="&symbols;/mini_round.png" type="png" width="9" height="9" allow_overlap="false"/>
78    </Rule>
79    <Rule>
80      &maxscale_zoom15;
81      <Filter>[highway]='gate' or [barrier]='gate'</Filter>
82      <PointSymbolizer file="&symbols;/gate2.png" type="png" width="7" height="5" allow_overlap="false"/>
83    </Rule>
84    <Rule>
85      &maxscale_zoom16;
86      <Filter>[barrier]='bollard'</Filter>
87      <PointSymbolizer file="&symbols;/bollard.png" type="png" width="3" height="3" allow_overlap="false"/>
88    </Rule>
89</Style>
90
91<Layer name="amenity-symbols" status="on" srs="&osm2pgsql_projection;">
92    <StyleName>symbols</StyleName>
93    <Datasource>
94      <Parameter name="table">
95      (select *
96      from &prefix;_point
97      where aeroway in ('airport','aerodrome')
98         or barrier in ('bollard','gate')
99         or highway in ('mini_roundabout','gate')
100         or man_made in ('lighthouse','power_wind','windmill','mast')
101         or (power='generator' and power_source='wind')
102         or "natural" in ('peak','spring','tree')
103         or railway='level_crossing'
104      ) as symbols</Parameter>
105      &datasource-settings;
106    </Datasource>
107</Layer>
108<Layer name="amenity-symbols-poly" status="on" srs="&osm2pgsql_projection;">
109    <StyleName>symbols</StyleName>
110    <Datasource>
111      <Parameter name="table">
112      (select *
113      from &prefix;_polygon
114      where aeroway in ('airport','aerodrome')
115         or barrier in ('bollard','gate')
116         or highway in ('mini_roundabout','gate')
117         or man_made in ('lighthouse','power_wind','windmill','mast')
118         or (power='generator' and power_source='wind')
119         or "natural" in ('peak','spring','tree')
120         or railway='level_crossing'
121      ) as symbols</Parameter>
122      &datasource-settings;
123    </Datasource>
124</Layer>
Note: See TracBrowser for help on using the repository browser.