source: subversion/applications/rendering/toposm/contourlabels.xml @ 22580

Revision 22580, 2.3 KB checked in by ahlzen, 4 years ago (diff)

Added TopOSM code and resources.

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
13   bgcolor="transparent"
14   srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
15
16
17<!--
18<Style name="supermajor1k">
19  <Rule>
20          &minz8; &maxz9;
21      <TextSymbolizer name="height_ft" face_name="DejaVu Sans Book"
22      size="7" fill="&contourcolor;" placement="line"
23      min_distance="200" max_char_angle_delta="35"/>
24  </Rule>
25</Style>
26-->
27
28<Style name="major">
29  <Rule>
30          &minz12; &maxz14;
31      <TextSymbolizer name="height_ft" face_name="DejaVu Sans Book"
32      size="7" fill="&contourcolor;" placement="line"
33      min_distance="150" max_char_angle_delta="35"/>
34  </Rule>
35  <Rule>
36          &minz15;
37      <TextSymbolizer name="height_ft" face_name="DejaVu Sans Book"
38      size="8" fill="&contourcolor;" placement="line"
39      min_distance="100" max_char_angle_delta="35"/>
40    </Rule>
41</Style>
42
43<Style name="minor">
44  <Rule>
45          &minz15;
46      <TextSymbolizer name="height_ft" face_name="DejaVu Sans Book"
47      size="8" fill="&contourcolor;" placement="line"
48      min_distance="100" max_char_angle_delta="35"/>
49    </Rule>
50</Style>
51
52
53<!--
54<Layer name="supermajor1k" status="on" srs="+proj=latlong +datum=WGS84">
55  <StyleName>supermajor1k</StyleName>
56  <Datasource>
57        &dbsettings;
58        &extentsLatLon;
59    <Parameter name="table">
60    (select * from contours_us_50ft WHERE height_ft % 1000 = 0) AS supermajor1k
61    </Parameter>
62  </Datasource>
63</Layer>
64-->
65
66<Layer name="major" status="on" srs="+proj=latlong +datum=WGS84">
67  <StyleName>major</StyleName>
68  <Datasource>
69        &dbsettings;
70        &extentsLatLon;
71    <Parameter name="table">
72    (select * from contours_us_50ft WHERE height_ft % 250 = 0) AS major
73    </Parameter>
74  </Datasource>
75</Layer>
76
77<Layer name="minor" status="on" srs="+proj=latlong +datum=WGS84">
78  <StyleName>minor</StyleName>
79  <Datasource>
80        &dbsettings;
81        &extentsLatLon;
82    <Parameter name="table">
83    (select * from contours_us_50ft WHERE height_ft % 250 &lt;&gt; 0) AS minor
84    </Parameter>
85  </Datasource>
86</Layer>
87
88</Map>
Note: See TracBrowser for help on using the repository browser.