source: subversion/applications/rendering/toposm/watermask.xml.templ @ 34399

Last change on this file since 34399 was 23281, checked in by ahlzen, 9 years ago

Minor style improvements, primarily at lower zoom levels.

File size: 3.8 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE Map[
3    <!ENTITY % utils SYSTEM "include/utils.inc">
4    <!ENTITY % colors SYSTEM "include/colors.inc">
5    <!ENTITY dbsettings SYSTEM "include/dbsettings.inc">
6    <!ENTITY extents SYSTEM "include/extents.inc">
7    <!ENTITY extentsLatLon SYSTEM "include/extentsLatLon.inc">
8    %utils;
9    %colors;
10]>
11
12<Map bgcolor="&watermaskcolor;" srs="&srs900913;">
13       
14<Style name="land-poly-lores">
15    <Rule>
16        &maxz9;
17        <PolygonSymbolizer>
18                        <CssParameter name="fill">&landmaskcolor;</CssParameter>
19                </PolygonSymbolizer>
20    </Rule>
21</Style>
22
23<Style name="land-poly-hires">
24        <Rule>
25            &minz10;
26                <PolygonSymbolizer>
27                        <CssParameter name="fill">&landmaskcolor;</CssParameter>
28                </PolygonSymbolizer>
29        </Rule>
30</Style>
31
32<Style name="water-major">
33  <Rule>
34    &maxz9;
35    <MaxScaleDenominator>1000000</MaxScaleDenominator>
36    <Filter>
37        [fcode] = 39000 or [fcode] = 39003 or [fcode] = 39004 or ([fcode] &gt;= 39009 and [fcode] &lt;= 39012) or
38        [fcode] = 46000 or [fcode] = 46004 or [fcode] = 46005 or [fcode] = 46006 or
39                ([fcode] &gt;= 43600 and [fcode] &lt;= 43699) or
40        ([fcode] &gt;= 33600 and [fcode] &lt;= 33699) or
41        [fcode] = 39001 or [fcode] = 39002 or [fcode] = 39005 or [fcode] = 39006 or
42        [fcode] = 46001 or [fcode] = 46002 or [fcode] = 46003
43    </Filter>
44    <PolygonSymbolizer>
45      <CssParameter name="fill">&watermaskcolor;</CssParameter>
46    </PolygonSymbolizer>
47  </Rule>
48</Style>
49
50<Style name="water-minor">
51  <Rule>
52    &minz10;
53    <MaxScaleDenominator>1000000</MaxScaleDenominator>
54    <Filter>
55        [fcode] = 39000 or [fcode] = 39003 or [fcode] = 39004 or ([fcode] &gt;= 39009 and [fcode] &lt;= 39012) or
56        [fcode] = 46000 or [fcode] = 46004 or [fcode] = 46005 or [fcode] = 46006 or
57                ([fcode] &gt;= 43600 and [fcode] &lt;= 43699) or
58        ([fcode] &gt;= 33600 and [fcode] &lt;= 33699) or
59        [fcode] = 39001 or [fcode] = 39002 or [fcode] = 39005 or [fcode] = 39006 or
60        [fcode] = 46001 or [fcode] = 46002 or [fcode] = 46003
61    </Filter>
62    <PolygonSymbolizer>
63      <CssParameter name="fill">&watermaskcolor;</CssParameter>
64    </PolygonSymbolizer>
65  </Rule>
66</Style>
67
68<Layer name="land-poly-lores" status="on" srs="&srs900913;">
69    <StyleName>land-poly-lores</StyleName>
70    <Datasource>
71        &extents; 
72        <Parameter name="type">shape</Parameter>
73        <Parameter name="file">${WORLD_BOUNDARIES_DIR}/shoreline_300</Parameter>
74    </Datasource>
75</Layer>
76
77<Layer name="land-poly-hires" status="on" srs="&srs900913;">
78    <StyleName>land-poly-hires</StyleName>
79    <Datasource>
80        &extents;
81        <Parameter name="type">shape</Parameter>
82        <Parameter name="file">${WORLD_BOUNDARIES_DIR}/processed_p</Parameter>
83    </Datasource>
84</Layer>
85
86<Layer name="waterbody_major" status="on" srs="&srsLatLongNAD83;">
87        <StyleName>water-major</StyleName>
88        <Datasource>
89                &dbsettings; &extentsLatLon;
90                <Parameter name="table">(select way, fcode from ${NHD_TABLE_PREFIX}_waterbody_major) as waterbody_major</Parameter>
91        </Datasource>
92</Layer>
93
94
95<Layer name="waterbody_minor" status="on" srs="&srsLatLongNAD83;">
96        <StyleName>water-minor</StyleName>
97        <Datasource>
98                &dbsettings; &extentsLatLon;
99                <Parameter name="table">(select way, fcode from ${NHD_TABLE_PREFIX}_waterbody) as waterbody_minor</Parameter>
100        </Datasource>
101</Layer>
102
103<Layer name="nhdarea_major" status="on" srs="&srsLatLongNAD83;">
104        <StyleName>water-major</StyleName>
105        <Datasource>
106                &dbsettings;
107                &extentsLatLon;
108                <Parameter name="table">(select way, fcode from ${NHD_TABLE_PREFIX}_area_major) as nhdarea_major</Parameter>
109        </Datasource>
110</Layer>
111
112<Layer name="nhdarea_minor" status="on" srs="&srsLatLongNAD83;">
113        <StyleName>water-minor</StyleName>
114        <Datasource>
115                &dbsettings;
116                &extentsLatLon;
117                <Parameter name="table">(select way, fcode from ${NHD_TABLE_PREFIX}_area) as nhdarea_minor</Parameter>
118        </Datasource>
119</Layer>
120
121</Map>
Note: See TracBrowser for help on using the repository browser.