source: subversion/applications/rendering/mapnik/inc/layer-placenames.xml.inc @ 23361

Last change on this file since 23361 was 23341, checked in by ldp, 9 years ago

Fix non-rendering place=town capitals. Fixes #3213.

File size: 7.1 KB
Line 
1<Style name="continent">
2    <Rule>
3      <Filter>[place] = 'continent'</Filter>
4      &maxscale_zoom1;
5      &minscale_zoom2;
6      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="20"/>
7    </Rule>
8</Style>
9<Style name="country">
10    <Rule>
11      <Filter>[place] = 'country'</Filter>
12      &maxscale_zoom2;
13      &minscale_zoom3;
14      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="20"/>
15    </Rule>
16    <Rule>
17      <Filter>[place] = 'country'</Filter>
18      &maxscale_zoom4;
19      &minscale_zoom6;
20      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="20"/>
21    </Rule>
22</Style>
23<Style name="state">
24    <Rule>
25      <Filter>[place] = 'state'</Filter>
26      &maxscale_zoom4;
27      &minscale_zoom4;
28      <TextSymbolizer name="ref" fontset_name="oblique-fonts" size="9" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="0"/>
29    </Rule>
30    <Rule>
31      <Filter>[place] = 'state'</Filter>
32      &maxscale_zoom5;
33      &minscale_zoom6;
34      <TextSymbolizer name="name" fontset_name="oblique-fonts" size="9" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="0"/>
35    </Rule>
36    <Rule>
37      <Filter>[place] = 'state'</Filter>
38      &maxscale_zoom7;
39      &minscale_zoom8;
40      <TextSymbolizer name="name" fontset_name="oblique-fonts" size="11" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="0"/>
41    </Rule>
42</Style>
43<Style name="capital">
44     <Rule>
45      &maxscale_zoom5;
46      &minscale_zoom5;
47      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
48    </Rule>
49    <Rule>
50      &maxscale_zoom6;
51      &minscale_zoom8;
52      <TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
53    </Rule>
54    <Rule>
55      &maxscale_zoom9;
56      &minscale_zoom10;
57      <TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
58    </Rule>
59    <Rule>
60      &maxscale_zoom11;
61      &minscale_zoom14;
62      <TextSymbolizer name="name" fontset_name="book-fonts" size="14" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
63    </Rule>
64</Style>
65<Style name="city">
66    <Rule>
67      <Filter>[place] = 'city' or [place]='metropolis'</Filter>
68      &maxscale_zoom6;
69      &minscale_zoom8;
70      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
71    </Rule>
72    <Rule>
73      <Filter>[place] = 'city' or [place]='metropolis'</Filter>
74      &maxscale_zoom9;
75      &minscale_zoom10;
76      <TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
77    </Rule>
78    <Rule>
79      <Filter>[place] = 'city' or [place]='metropolis'</Filter>
80      &maxscale_zoom11;
81      &minscale_zoom14;
82      <TextSymbolizer name="name" fontset_name="book-fonts" size="14" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
83    </Rule>
84</Style>
85<Style name="town">
86    <Rule>
87      <Filter>[place] = 'town' or [place]='large_town' or [place]='small_town'</Filter>
88      &maxscale_zoom9;
89      &minscale_zoom10;
90      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#000" halo_radius="1" wrap_width="20"/>
91    </Rule>
92    <Rule>
93      <Filter>[place] = 'town' or [place]='large_town' or [place]='small_town'</Filter>
94      &maxscale_zoom11;
95      &minscale_zoom13;
96      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000" halo_radius="1" wrap_width="20"/>
97    </Rule>
98    <Rule>
99      <Filter>[place] = 'town' or [place]='large_town' or [place]='small_town'</Filter>
100      &maxscale_zoom14;
101      <TextSymbolizer name="name" fontset_name="book-fonts" size="14" fill="#777777" halo_radius="1" wrap_width="20"/>
102    </Rule>
103</Style>
104<Style name="suburb">
105    <Rule>
106      <Filter>[place] = 'suburb'</Filter>
107      &maxscale_zoom12;
108      &minscale_zoom13;
109      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000" halo_radius="1" wrap_width="0"/>
110    </Rule>
111    <Rule>
112      <Filter>[place] = 'suburb'</Filter>
113      &maxscale_zoom14;
114      <TextSymbolizer name="name" fontset_name="book-fonts" size="13" fill="#777777" halo_radius="1" wrap_width="0"/>
115    </Rule>
116</Style>
117<Style name="village">
118    <Rule>
119      <Filter>[place] = 'village' or [place]='large_village'</Filter>
120      &maxscale_zoom12;
121      &minscale_zoom14;
122      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#000" halo_radius="1" wrap_width="0"/>
123    </Rule>
124    <Rule>
125      <Filter>[place] = 'village' or [place]='large_village'</Filter>
126      &maxscale_zoom15;
127      <TextSymbolizer name="name" fontset_name="book-fonts" size="12" fill="#777777" halo_radius="1" wrap_width="0"/>
128    </Rule>
129</Style>
130<Style name="hamlet">
131    <Rule>
132      <Filter>[place] = 'hamlet' or [place] = 'locality'</Filter>
133      &maxscale_zoom14;
134      &minscale_zoom15;
135      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#000" halo_radius="1" wrap_width="0"/>
136    </Rule>
137    <Rule>
138      <Filter>[place] = 'hamlet' or [place] = 'locality'</Filter>
139      &maxscale_zoom16;
140      <TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="#777777" halo_radius="1" wrap_width="0"/>
141    </Rule>
142</Style>
143
144<Layer name="placenames-large" status="on" srs="&osm2pgsql_projection;">
145    <StyleName>country</StyleName>
146    <StyleName>state</StyleName>
147    <Datasource>
148      <Parameter name="table">
149      (select way,place,name,ref
150       from &prefix;_point
151       where place in ('country','state')
152      ) as placenames</Parameter>
153      &datasource-settings;
154    </Datasource>
155</Layer>
156<Layer name="placenames-capital" status="on" srs="&osm2pgsql_projection;">
157    <StyleName>capital</StyleName>
158    <Datasource>
159      <Parameter name="table">
160      (select way,place,name,ref
161       from &prefix;_point
162       where place in ('city','metropolis','town') and capital='yes'
163      ) as placenames</Parameter>
164      &datasource-settings;
165    </Datasource>
166</Layer>
167<Layer name="placenames-medium" status="on" srs="&osm2pgsql_projection;">
168    <StyleName>city</StyleName>
169    <StyleName>town</StyleName>
170    <Datasource>
171      <Parameter name="table">
172      (select way,place,name
173      from &prefix;_point
174      where place in ('city','metropolis','town','large_town','small_town')
175        and (capital is null or capital&lt;&gt;'yes')
176      ) as placenames</Parameter>
177      &datasource-settings;
178    </Datasource>
179</Layer>
180<Layer name="placenames-small" status="on" srs="&osm2pgsql_projection;">
181    <StyleName>suburb</StyleName>
182    <StyleName>village</StyleName>
183    <StyleName>hamlet</StyleName>
184    <Datasource>
185      <Parameter name="table">
186      (select way,place,name
187      from &prefix;_point
188      where place in ('suburb','village','large_village','hamlet','locality')
189      ) as placenames</Parameter>
190      &datasource-settings;
191    </Datasource>
192</Layer>
193
Note: See TracBrowser for help on using the repository browser.