My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<Style name="country">
<Rule>
<Filter>[place] = 'country'</Filter>
&maxscale_zoom2;
&minscale_zoom3;
<TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="20"/>
</Rule>
<Rule>
<Filter>[place] = 'country'</Filter>
&maxscale_zoom4;
&minscale_zoom6;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="20"/>
</Rule>
</Style>
<Style name="state">
<Rule>
<Filter>[place] = 'state'</Filter>
&maxscale_zoom4;
&minscale_zoom4;
<TextSymbolizer name="ref" fontset_name="oblique-fonts" size="9" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'state'</Filter>
&maxscale_zoom5;
&minscale_zoom6;
<TextSymbolizer name="name" fontset_name="oblique-fonts" size="9" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'state'</Filter>
&maxscale_zoom7;
&minscale_zoom8;
<TextSymbolizer name="name" fontset_name="oblique-fonts" size="11" fill="#9d6c9d" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
</Style>
<Style name="capital">
<Rule>
<Filter>[place] = 'city' or [place]='metropolis'</Filter>
&maxscale_zoom5;
&minscale_zoom5;
<TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'city' or [place]='metropolis'</Filter>
&maxscale_zoom6;
&minscale_zoom8;
<TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'city' or [place]='metropolis'</Filter>
&maxscale_zoom9;
&minscale_zoom10;
<TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'city' or [place]='metropolis'</Filter>
&maxscale_zoom11;
&minscale_zoom14;
<TextSymbolizer name="name" fontset_name="book-fonts" size="14" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
</Style>
<Style name="city">
<Rule>
<Filter>[place] = 'city' or [place]='metropolis'</Filter>
&maxscale_zoom6;
&minscale_zoom8;
<TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'city' or [place]='metropolis'</Filter>
&maxscale_zoom9;
&minscale_zoom10;
<TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'city' or [place]='metropolis'</Filter>
&maxscale_zoom11;
&minscale_zoom14;
<TextSymbolizer name="name" fontset_name="book-fonts" size="14" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
</Style>
<Style name="town">
<Rule>
<Filter>[place] = 'town' or [place]='large_town' or [place]='small_town'</Filter>
&maxscale_zoom9;
&minscale_zoom10;
<TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#000" halo_radius="1" wrap_width="20"/>
</Rule>
<Rule>
<Filter>[place] = 'town' or [place]='large_town' or [place]='small_town'</Filter>
&maxscale_zoom11;
&minscale_zoom13;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000" halo_radius="1" wrap_width="20"/>
</Rule>
<Rule>
<Filter>[place] = 'town' or [place]='large_town' or [place]='small_town'</Filter>
&maxscale_zoom14;
<TextSymbolizer name="name" fontset_name="book-fonts" size="14" fill="#777777" halo_radius="1" wrap_width="20"/>
</Rule>
</Style>
<Style name="suburb">
<Rule>
<Filter>[place] = 'suburb'</Filter>
&maxscale_zoom12;
&minscale_zoom13;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000" halo_radius="1" wrap_width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'suburb'</Filter>
&maxscale_zoom14;
<TextSymbolizer name="name" fontset_name="book-fonts" size="13" fill="#777777" halo_radius="1" wrap_width="0"/>
</Rule>
</Style>
<Style name="village">
<Rule>
<Filter>[place] = 'village' or [place]='large_village'</Filter>
&maxscale_zoom12;
&minscale_zoom14;
<TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#000" halo_radius="1" wrap_width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'village' or [place]='large_village'</Filter>
&maxscale_zoom15;
<TextSymbolizer name="name" fontset_name="book-fonts" size="12" fill="#777777" halo_radius="1" wrap_width="0"/>
</Rule>
</Style>
<Style name="hamlet">
<Rule>
<Filter>[place] = 'hamlet' or [place] = 'locality'</Filter>
&maxscale_zoom14;
&minscale_zoom15;
<TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#000" halo_radius="1" wrap_width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'hamlet' or [place] = 'locality'</Filter>
&maxscale_zoom16;
<TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="#777777" halo_radius="1" wrap_width="0"/>
</Rule>
</Style>

<Layer name="placenames-large" status="on" srs="&osm2pgsql_projection;">
<StyleName>country</StyleName>
<StyleName>state</StyleName>
<StyleName>capital</StyleName>
<Datasource>
<Parameter name="table">
(select way,place,"name" || ' (' || "name:en" || ')' as name,ref
from &prefix;_point
where place in ('country','state')
or (place in ('city','metropolis') and capital='yes')
) as placenames</Parameter>
&datasource-settings;
</Datasource>
</Layer>
<Layer name="placenames-medium" status="on" srs="&osm2pgsql_projection;">
<StyleName>city</StyleName>
<StyleName>town</StyleName>
<Datasource>
<Parameter name="table">
(select way,place,"name" || ' (' || "name:en" || ')' as name
from &prefix;_point
where place in ('city','metropolis','town','large_town','small_town')
and (capital is null or capital&lt;&gt;'yes')
) as placenames</Parameter>
&datasource-settings;
</Datasource>
</Layer>
<Layer name="placenames-small" status="on" srs="&osm2pgsql_projection;">
<StyleName>suburb</StyleName>
<StyleName>village</StyleName>
<StyleName>hamlet</StyleName>
<Datasource>
<Parameter name="table">
(select way,place,"name" || ' (' || "name:en" || ')' as name
from &prefix;_point
where place in ('suburb','village','large_village','hamlet','locality')
) as placenames</Parameter>
&datasource-settings;
</Datasource>
</Layer>

Change log

r194 by grahamjones139 on Apr 27, 2011   Diff
Added English and Greek place name labels.
Go to: 
Project members, sign in to write a code review

Older revisions

r188 by grahamjones139 on Apr 26, 2011   Diff
Added kefalonia map scripts and data
All revisions of this file

File info

Size: 7104 bytes, 180 lines

File properties

svn:keywords
Rev Author ID
Powered by Google Project Hosting