-
Notifications
You must be signed in to change notification settings - Fork 1
/
layer-linefeatures.xml.ent
47 lines (44 loc) · 1.38 KB
/
layer-linefeatures.xml.ent
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
<Style name="cliffs">
<Rule>
&maxscale_zoom13;
<Filter>[natural] = 'cliff'</Filter>
<LinePatternSymbolizer file="&symbols;/cliff.png"/>
</Rule>
</Style>
<Style name="barriers">
<Rule>
&maxscale_zoom14;
<Filter>[natural]='hedge' or [barrier] = 'hedge'</Filter>
<LineSymbolizer>
<CssParameter name="stroke">&naturearea-color;</CssParameter>
<CssParameter name="stroke-width">1.5</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
&maxscale_zoom13;
<Filter>[barrier] <> '' and not [barrier] = 'hedge'</Filter>
<LinePatternSymbolizer file="&symbols;/wall.png"/>
</Rule>
</Style>
<Layer name="line features" status="on" srs="&osm2pgsql_projection;">
<StyleName>cliffs</StyleName>
<StyleName>barriers</StyleName>
<Datasource>
<Parameter name="table">
(select way,barrier,"natural",man_made from &prefix;_line
where barrier is not null
or "natural" in ('hedge','cliff')
) as roads
</Parameter>
&datasource-settings;
</Datasource>
</Layer>
<Layer name="polygon barriers" status="on" srs="&osm2pgsql_projection;">
<StyleName>barriers</StyleName>
<Datasource>
<Parameter name="table">
(select way,barrier,"natural" from &prefix;_polygon where barrier is not null or "natural"='hedge') as barriers
</Parameter>
&datasource-settings;
</Datasource>
</Layer>