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

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

Use line symbolisation for leisure=marina #1681

File size: 4.0 KB
Line 
1<Style name="dam">
2    <Rule>
3      &maxscale_zoom13;
4      &minscale_zoom18;
5      <LineSymbolizer>
6        <CssParameter name="stroke">#444</CssParameter>
7        <CssParameter name="stroke-width">2</CssParameter>
8        <CssParameter name="stroke-linejoin">round</CssParameter>
9        <CssParameter name="stroke-linecap">round</CssParameter>
10      </LineSymbolizer>
11    </Rule>
12    <Rule>
13      &maxscale_zoom15;
14      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#222" halo_radius="1"/>
15    </Rule>
16</Style>
17<Style name="marinas-area">
18    <Rule>
19      &maxscale_zoom14;
20      &minscale_zoom15;
21      <LineSymbolizer>
22        <CssParameter name="stroke">blue</CssParameter>
23        <CssParameter name="stroke-width">1</CssParameter>
24        <CssParameter name="stroke-dasharray">6,2</CssParameter>
25        <CssParameter name="stroke-opacity">0.5</CssParameter>
26      </LineSymbolizer>
27    </Rule>
28    <Rule>
29      &maxscale_zoom16;
30      <LineSymbolizer>
31        <CssParameter name="stroke">blue</CssParameter>
32        <CssParameter name="stroke-width">2</CssParameter>
33        <CssParameter name="stroke-dasharray">6,2</CssParameter>
34        <CssParameter name="stroke-opacity">0.5</CssParameter>
35      </LineSymbolizer>
36    </Rule>
37</Style>
38<Style name="piers-area">
39    <Rule>
40      &maxscale_zoom12;
41      <PolygonSymbolizer>
42        <CssParameter name="fill">#f2efe9</CssParameter>
43      </PolygonSymbolizer>
44    </Rule>
45</Style>
46<Style name="piers">
47    <Rule>
48      &maxscale_zoom11;
49      &minscale_zoom12;
50      <LineSymbolizer>
51        <CssParameter name="stroke">#f2efe9</CssParameter>
52        <CssParameter name="stroke-width">2</CssParameter>
53      </LineSymbolizer>
54    </Rule>
55    <Rule>
56      &maxscale_zoom13;
57      &minscale_zoom14;
58      <LineSymbolizer>
59        <CssParameter name="stroke">#f2efe9</CssParameter>
60        <CssParameter name="stroke-width">4</CssParameter>
61      </LineSymbolizer>
62    </Rule>
63    <Rule>
64      &maxscale_zoom15;
65      &minscale_zoom18;
66      <LineSymbolizer>
67        <CssParameter name="stroke">#f2efe9</CssParameter>
68        <CssParameter name="stroke-width">7</CssParameter>
69      </LineSymbolizer>
70    </Rule>
71</Style>
72<Style name="locks">
73<Rule>
74      &maxscale_zoom17;
75      &minscale_zoom18;
76      <Filter>[waterway]='lock_gate'</Filter>
77      <PointSymbolizer file="&symbols;/lock_gate.png" type="png" width="9" height="9" />
78</Rule>
79</Style>
80<Layer name="dam" status="on" srs="&osm2pgsql_projection;">
81    <StyleName>dam</StyleName>
82    <Datasource>
83      <Parameter name="table">
84      (select way,name from &prefix;_line where waterway='dam') as dam</Parameter>
85      &datasource-settings;
86    </Datasource>
87</Layer>
88<Layer name="marinas-area" status="on" srs="&osm2pgsql_projection;">
89    <StyleName>marinas-area</StyleName>
90    <Datasource>
91      <Parameter name="table">
92      (select way from &prefix;_polygon where leisure ='marina') as marinas
93      </Parameter>
94      &datasource-settings;
95    </Datasource>
96</Layer>
97<Layer name="piers-area" status="on" srs="&osm2pgsql_projection;">
98    <StyleName>piers-area</StyleName>
99    <Datasource>
100      <Parameter name="table">
101      (select way from &prefix;_polygon where man_made in ('pier','breakwater')) as piers
102      </Parameter>
103      &datasource-settings;
104    </Datasource>
105</Layer>
106<Layer name="piers" status="on" srs="&osm2pgsql_projection;">
107     <StyleName>piers</StyleName>
108     <Datasource>
109      <Parameter name="table">
110      (select way from &prefix;_line where man_made in ('pier','breakwater')) as piers
111      </Parameter>
112      &datasource-settings;
113    </Datasource>
114</Layer>
115<Layer name="locks" status="on" srs="&osm2pgsql_projection;">
116     <StyleName>locks</StyleName>
117     <Datasource>
118      <Parameter name="table">
119      (select way,waterway from &prefix;_point where waterway='lock_gate') as locks
120      </Parameter>
121      &datasource-settings;
122    </Datasource>
123</Layer>
124
125
Note: See TracBrowser for help on using the repository browser.