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

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

3 amended layer files

File size: 5.0 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      &minscale_zoom16;
57      <Filter>[natural]='tree'</Filter>
58      <PointSymbolizer file="&symbols;/tree.png" type="png" width="3" height="3" />
59    </Rule>
60    <Rule>
61      &maxscale_zoom17;
62      <Filter>[natural]='tree'</Filter>
63      <PointSymbolizer file="&symbols;/tree2.png" type="png" width="5" height="5" />
64    </Rule>
65    <Rule>
66      &maxscale_zoom15;
67      <Filter>[man_made]='power_wind' or ([power]='generator' and [power_source] = 'wind')</Filter>
68      <PointSymbolizer file="&symbols;/power_wind.png" type="png" width="16" height="26" />
69    </Rule>
70    <Rule>
71      &maxscale_zoom16;
72      <Filter>[man_made]='windmill'</Filter>
73      <PointSymbolizer file="&symbols;/windmill.png" type="png" width="10" height="15" />
74    </Rule>
75    <Rule>
76      &maxscale_zoom17;
77      <Filter>[man_made]='mast'</Filter>
78      <PointSymbolizer file="&symbols;/communications.p.20.png" type="png" width="20" height="20" />
79    </Rule>
80    <Rule>
81      &maxscale_zoom15;
82      <Filter>[highway]='mini_roundabout'</Filter>
83      <PointSymbolizer file="&symbols;/mini_round.png" type="png" width="9" height="9" allow_overlap="false"/>
84    </Rule>
85    <Rule>
86      &maxscale_zoom15;
87      <Filter>[highway]='gate' or [barrier]='gate'</Filter>
88      <PointSymbolizer file="&symbols;/gate2.png" type="png" width="7" height="5" allow_overlap="false"/>
89    </Rule>
90    <Rule>
91      &maxscale_zoom16;
92      <Filter>[barrier]='bollard'</Filter>
93      <PointSymbolizer file="&symbols;/bollard.png" type="png" width="3" height="3" allow_overlap="false"/>
94    </Rule>
95</Style>
96
97<Layer name="amenity-symbols" status="on" srs="&osm2pgsql_projection;">
98    <StyleName>symbols</StyleName>
99    <Datasource>
100      <Parameter name="table">
101      (select *
102      from &prefix;_point
103      where aeroway in ('airport','aerodrome')
104         or barrier in ('bollard','gate')
105         or highway in ('mini_roundabout','gate')
106         or man_made in ('lighthouse','power_wind','windmill','mast')
107         or (power='generator' and power_source='wind')
108         or "natural" in ('peak','spring','tree')
109         or railway='level_crossing'
110      ) as symbols</Parameter>
111      &datasource-settings;
112    </Datasource>
113</Layer>
114<Layer name="amenity-symbols-poly" status="on" srs="&osm2pgsql_projection;">
115    <StyleName>symbols</StyleName>
116    <Datasource>
117      <Parameter name="table">
118      (select *
119      from &prefix;_polygon
120      where aeroway in ('airport','aerodrome')
121         or barrier in ('bollard','gate')
122         or highway in ('mini_roundabout','gate')
123         or man_made in ('lighthouse','power_wind','windmill','mast')
124         or (power='generator' and power_source='wind')
125         or "natural" in ('peak','spring','tree')
126         or railway='level_crossing'
127      ) as symbols</Parameter>
128      &datasource-settings;
129    </Datasource>
130</Layer>
Note: See TracBrowser for help on using the repository browser.