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

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

Changed contours from 50ft to 25ft at higher zoom levels.

File size: 2.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 extentsLatLon SYSTEM "include/extentsLatLon.inc">
7        <!ENTITY rounded SYSTEM "include/rounded.inc">
8        %utils;
9        %colors;
10]>
11
12<Map bgcolor="&landcolor;" srs="&srs900913;">
13
14<!--
15<Style name="supermajor1k">
16  <Rule>
17        &minz8; &maxz9;
18    <LineSymbolizer>
19      <CssParameter name="stroke">&contourcolor;</CssParameter>
20      <CssParameter name="stroke-width">0.2</CssParameter>
21      &rounded;
22    </LineSymbolizer>
23  </Rule>
24</Style>
25-->
26
27<Style name="major">
28    <!--
29  <Rule>
30        &minz10; &maxz11;
31    <LineSymbolizer>
32      <CssParameter name="stroke">&contourcolor;</CssParameter>
33      <CssParameter name="stroke-width">0.3</CssParameter>
34      &rounded;
35    </LineSymbolizer>
36  </Rule>
37  -->
38  <Rule>
39        &minz11; &maxz12;
40    <LineSymbolizer>
41      <CssParameter name="stroke">&contourcolor;</CssParameter>
42      <CssParameter name="stroke-width">0.2</CssParameter>
43    </LineSymbolizer>
44  </Rule>
45  <Rule>
46        &minz13; &maxz13;
47    <LineSymbolizer>
48      <CssParameter name="stroke">&contourcolor;</CssParameter>
49      <CssParameter name="stroke-width">0.4</CssParameter>
50    </LineSymbolizer>
51  </Rule>
52  <Rule>
53        &minz14;
54    <LineSymbolizer>
55      <CssParameter name="stroke">&contourcolor;</CssParameter>
56      <CssParameter name="stroke-width">0.8</CssParameter>
57    </LineSymbolizer>
58  </Rule>
59</Style>
60
61<Style name="minor">
62  <Rule>
63        &minz13; &maxz13;
64    <LineSymbolizer>
65      <CssParameter name="stroke">&contourcolor;</CssParameter>
66      <CssParameter name="stroke-width">0.2</CssParameter>
67    </LineSymbolizer>
68  </Rule>
69  <Rule>
70    &minz14;
71    <LineSymbolizer>
72      <CssParameter name="stroke">&contourcolor;</CssParameter>
73      <CssParameter name="stroke-width">0.3</CssParameter>
74    </LineSymbolizer>
75  </Rule>
76</Style>
77
78
79<!--
80<Layer name="supermajor1k" status="on" srs="+proj=latlong +datum=NAD83">
81  <StyleName>supermajor1k</StyleName>
82  <Datasource>
83        &dbsettings;
84        &extentsLatLon;
85    <Parameter name="table">
86    (select * from contours_us_50ft WHERE height_ft % 1000 = 0) AS supermajor1k
87    </Parameter>
88  </Datasource>
89</Layer>
90-->
91
92<Layer name="major" status="on" srs="&srsLatLongNAD83;">
93  <StyleName>major</StyleName>
94  <Datasource>
95        &dbsettings;
96        &extentsLatLon;
97    <Parameter name="table">
98    (select * from ${CONTOURS_TABLE} WHERE height_ft % 250 = 0) AS major
99    </Parameter>
100  </Datasource>
101</Layer>
102
103<Layer name="minor" status="on" srs="&srsLatLongNAD83;">
104  <StyleName>minor</StyleName>
105  <Datasource>
106        &dbsettings;
107        &extentsLatLon;
108    <Parameter name="table">
109    (select * from ${CONTOURS_TABLE} WHERE height_ft % 250 &lt;&gt; 0) AS minor
110    </Parameter>
111  </Datasource>
112</Layer>
113
114</Map>
Note: See TracBrowser for help on using the repository browser.