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

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

Minor adjustments to contour labels.

File size: 2.4 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      <TextSymbolizer name="height_ft" face_name="DejaVu Sans Book"
19      size="7" fill="&contourcolor;" placement="line"
20      min_distance="200" max_char_angle_delta="35"/>
21  </Rule>
22</Style>
23-->
24
25<Style name="major">
26  <Rule>
27          &minz12; &maxz13;
28      <TextSymbolizer name="height_ft" face_name="DejaVu Sans Book"
29      size="7" fill="&contourcolor;" placement="line"
30      min_distance="150" max_char_angle_delta="35"/>
31  </Rule>
32  <Rule>
33          &minz14;
34      <TextSymbolizer name="height_ft" face_name="DejaVu Sans Book"
35      size="8" fill="&contourcolor;" placement="line"
36      min_distance="100" max_char_angle_delta="35"/>
37   </Rule>
38   <Rule>
39          &minz14;
40      <TextSymbolizer name="height_ft" face_name="DejaVu Sans Book"
41      size="9" fill="&contourcolor;" placement="line"
42      min_distance="100" max_char_angle_delta="35"/>
43   </Rule>
44</Style>
45
46<Style name="minor">
47  <Rule>
48          &minz15;
49      <TextSymbolizer name="height_ft" face_name="DejaVu Sans Book"
50      size="7" fill="&contourcolor;" placement="line"
51      min_distance="100" max_char_angle_delta="35"/>
52    </Rule>
53</Style>
54
55
56<!--
57<Layer name="supermajor1k" status="on" srs="+proj=latlong +datum=WGS84">
58  <StyleName>supermajor1k</StyleName>
59  <Datasource>
60        &dbsettings;
61        &extentsLatLon;
62    <Parameter name="table">
63    (select * from contours_us_50ft WHERE height_ft % 1000 = 0) AS supermajor1k
64    </Parameter>
65  </Datasource>
66</Layer>
67-->
68
69<Layer name="major" status="on" srs="&srsLatLongNAD83;">
70  <StyleName>major</StyleName>
71  <Datasource>
72        &dbsettings;
73        &extentsLatLon;
74    <Parameter name="table">
75    (select * from ${CONTOURS_TABLE} WHERE height_ft % 250 = 0) AS major
76    </Parameter>
77  </Datasource>
78</Layer>
79
80<Layer name="minor" status="on" srs="&srsLatLongNAD83;">
81  <StyleName>minor</StyleName>
82  <Datasource>
83        &dbsettings;
84        &extentsLatLon;
85    <Parameter name="table">
86    (select * from ${CONTOURS_TABLE} WHERE height_ft % 250 &lt;&gt; 0) AS minor
87    </Parameter>
88  </Datasource>
89</Layer>
90
91</Map>
Note: See TracBrowser for help on using the repository browser.