source: subversion/applications/rendering/nor-hikingmap/layer-roadnames.xml.ent @ 29168

Last change on this file since 29168 was 23131, checked in by vibrog, 9 years ago

Use hstore for board_type=nature (test)

File size: 3.7 KB
Line 
1<Style name="roads-text">
2    <Rule>
3      <Filter>[highway] = 'trunk' or [highway] = 'primary'</Filter>
4      &maxscale_zoom14;
5      &minscale_zoom14;
6      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="black" halo_radius="1" placement="line"/>
7    </Rule>
8    <Rule>
9      <Filter>[highway] = 'trunk' or [highway] = 'primary'</Filter>
10      &maxscale_zoom15;
11      &minscale_zoom18;
12      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="black" halo_radius="1" placement="line"/>
13    </Rule>
14    <Rule>
15      <Filter>[highway] = 'secondary'</Filter>
16      &maxscale_zoom14;
17      &minscale_zoom14;
18      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="black" halo_radius="1" placement="line"/>
19    </Rule>
20    <Rule>
21      <Filter>[highway] = 'secondary'</Filter>
22      &maxscale_zoom15;
23      &minscale_zoom18;
24      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="black" halo_radius="1" placement="line"/>
25    </Rule>
26    <Rule>
27      <Filter>[highway] = 'tertiary'</Filter>
28      &maxscale_zoom15;
29      &minscale_zoom16;
30      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="black" halo_radius="1"  placement="line" />
31    </Rule>
32    <Rule>
33      <Filter>[highway] = 'tertiary'</Filter>
34      &maxscale_zoom17;
35      &minscale_zoom18;
36      <TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="black" halo_radius="1"  placement="line" />
37    </Rule>
38    <Rule>
39      &maxscale_zoom15;
40      &minscale_zoom15;
41      <Filter>[highway] = 'proposed' or [highway]='construction'</Filter>
42      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="black" halo_radius="1"  placement="line" />
43    </Rule>
44    <Rule>
45      &maxscale_zoom16;
46      &minscale_zoom18;
47      <Filter>[highway] = 'proposed' or [highway]='construction'</Filter>
48      <TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="black" halo_radius="1"  placement="line" />
49    </Rule>
50    <Rule>
51      <Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
52      &maxscale_zoom15;
53      &minscale_zoom15;
54      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="black" halo_radius="1" spacing="300" placement="line" />
55    </Rule>
56    <Rule>
57      <Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
58      &maxscale_zoom16;
59      &minscale_zoom16;
60      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="black" halo_radius="1" spacing="300" placement="line" />
61    </Rule>
62    <Rule>
63      <Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
64      &maxscale_zoom17;
65      &minscale_zoom18;
66      <TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="black" halo_radius="1" spacing="400" placement="line" />
67    </Rule>
68    <Rule>
69      <ElseFilter/>
70      &maxscale_zoom15;
71      &minscale_zoom16;
72      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="black" halo_radius="1" placement="line" />
73    </Rule>
74    <Rule>
75      <ElseFilter/>
76      &maxscale_zoom17;
77      &minscale_zoom18;
78      <TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="black" halo_radius="1" placement="line" />
79    </Rule>
80</Style>
81
82<Layer name="planet roads text osm" status="on" srs="&osm2pgsql_projection;">
83     <StyleName>roads-text</StyleName>
84     <Datasource>
85      <Parameter name="table">
86      (select way,highway,aeroway,name
87       from &prefix;_line
88       where waterway IS NULL
89         and leisure IS NULL
90         and landuse IS NULL
91         and boundary IS NULL
92         and place IS NULL
93         and (name is not null or ref is not null)
94      ) as roads
95      </Parameter>
96      &datasource-settings;
97    </Datasource>
98</Layer>
Note: See TracBrowser for help on using the repository browser.