source: subversion/applications/rendering/mapnik/inc/layer-buildings.xml.inc @ 19258

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

3 amended layer files

File size: 3.0 KB
Line 
1<Style name="buildings">
2    <Rule>
3      <Filter>[railway] = 'station' or [building] = 'station'</Filter>
4      &maxscale_zoom10;
5     <PolygonSymbolizer>
6         <CssParameter name="fill">#d4aaaa</CssParameter>
7     </PolygonSymbolizer>
8    </Rule>
9    <Rule>
10      <Filter>[building] = 'supermarket'</Filter>
11      &maxscale_zoom10;
12      <PolygonSymbolizer>
13         <CssParameter name="fill">pink</CssParameter>
14         <CssParameter name="fill-opacity">0.5</CssParameter>
15      </PolygonSymbolizer>
16    </Rule>
17    <Rule>
18      <Filter>[amenity] = 'place_of_worship'</Filter>
19      &maxscale_zoom10;
20      &minscale_zoom14;
21      <PolygonSymbolizer>
22         <CssParameter name="fill">#777</CssParameter>
23         <CssParameter name="fill-opacity">0.5</CssParameter>
24      </PolygonSymbolizer>
25    </Rule>
26    <Rule>
27      <Filter>[amenity] = 'place_of_worship'</Filter>
28      &maxscale_zoom15;
29      <PolygonSymbolizer>
30         <CssParameter name="fill">#777</CssParameter>
31         <CssParameter name="fill-opacity">0.5</CssParameter>
32      </PolygonSymbolizer>
33      <LineSymbolizer>
34        <CssParameter name="stroke">#111</CssParameter>
35        <CssParameter name="stroke-width">0.3</CssParameter>
36      </LineSymbolizer>
37    </Rule>
38     <Rule>
39      <Filter>[leisure]='track'</Filter>
40      &maxscale_zoom10;
41      <PolygonSymbolizer>
42         <CssParameter name="fill">#74dcba</CssParameter>
43      </PolygonSymbolizer>
44      <LineSymbolizer>
45        <CssParameter name="stroke">#888</CssParameter>
46        <CssParameter name="stroke-width">0.5</CssParameter>
47      </LineSymbolizer>
48    </Rule>
49    <Rule>
50      <Filter>[building] &lt;&gt; 'station' and [building] &lt;&gt; 'supermarket' and [building] &lt;&gt; '' and (not [amenity] &lt;&gt; '' or [amenity] &lt;&gt; 'place_of_worship')</Filter>
51      &maxscale_zoom10;
52      <PolygonSymbolizer>
53         <CssParameter name="fill">#bca9a9</CssParameter>
54      </PolygonSymbolizer>
55    </Rule>
56    <Rule>
57      <Filter>[aeroway] = 'terminal'</Filter>
58      &maxscale_zoom12;
59      <PolygonSymbolizer>
60         <CssParameter name="fill">#cc99ff</CssParameter>
61      </PolygonSymbolizer>
62    </Rule>
63    <Rule>
64      <Filter>[aeroway] = 'terminal'</Filter>
65      &maxscale_zoom14;
66      <LineSymbolizer>
67        <CssParameter name="stroke">#330066</CssParameter>
68        <CssParameter name="stroke-width">0.2</CssParameter>
69      </LineSymbolizer>
70    </Rule>
71</Style>
72
73<Layer name="buildings" status="on" srs="&osm2pgsql_projection;">
74    <StyleName>buildings</StyleName>
75    <Datasource>
76      <Parameter name="table">
77      (select way,building,leisure,railway,amenity,aeroway from &prefix;_polygon
78       where building is not null
79          or leisure in ('pitch','track')
80          or railway='station'
81          or amenity='place_of_worship'
82          or aeroway='terminal'
83       order by z_order,way_area desc) as buildings
84      </Parameter>
85      &datasource-settings;
86    </Datasource>
87</Layer>
88
Note: See TracBrowser for help on using the repository browser.