File: dem_layer.xml

package info (click to toggle)
viking 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,468 kB
  • sloc: ansic: 81,706; xml: 2,893; sh: 2,501; makefile: 874; python: 589; perl: 384; cpp: 259
file content (217 lines) | stat: -rw-r--r-- 7,276 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<?xml version="1.0"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
   [<!ENTITY appname          "Viking">]
>

<section id="DEM" xreflabel="DEM"><title>DEM (Digital Elevation Model) Layer</title>
<para>
This layer provides elevation data from the <ulink url="https://www2.jpl.nasa.gov/srtm/">Shuttle Radar Topography Mission (SRTM)</ulink>
</para>
<para>
Elevation data can be useful in planning trips, as you many wish to avoid/minimise the hills encountered. [OSM Cyclemap is also useful this way too]
</para>
<para>
To download the data use the <xref linkend="dem_tool_dl"/> tool (shown on the toolbar), and then click on a area of the viewport. Once files have been downloaded they can then be loaded from disk via the DEM properties in future application runs.
</para>
<para>
  The default data server is the official <ulink url="https://earthdata.nasa.gov/">NASA site</ulink>,
  however (as of 2021) to download from NASA's Land Processes Distributed Active Archive Center (LP DAAC) you must
  <ulink url="https://urs.earthdata.nasa.gov/users/new/">Register</ulink> and then provide your login details to &appname;
  in the <xref linkend="prefs_dem_server"/> preferences.
</para>
<para>
  In order to support alternative DEM servers, the Downloads Property tab contains settings to change the URL and to configure how requests are made to the DEM since different servers store the files in different locations and names. The defaults in using NASA Earthdata are:
</para>
<variablelist>
  <varlistentry>
  <term></term>
    <listitem>
      <para>
        <guilabel>Base URL</guilabel> set to <userinput>https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11</userinput>
      </para>
    </listitem>
</varlistentry>
<varlistentry>
  <term></term>
  <listitem>
      <para>
        <guilabel>Layout</guilabel> set to <userinput>None</userinput>
      </para>
  </listitem>
</varlistentry>
<varlistentry>
  <term></term>
  <listitem>
      <para>
        <guilabel>Filename Convention</guilabel> set to <userinput>SRTMGL1</userinput>
      </para>
  </listitem>
</varlistentry>
</variablelist>

<para>
  One currently known alternative DEM server is provided by <ulink url="https://bailu.ch/">Another Activity Tracker (AAT)</ulink>.
  This is supported by the following settings:
</para>
<variablelist>
<varlistentry>
  <term></term>
  <listitem>
    <para>
      <guilabel>Base URL</guilabel> set to <userinput>https://bailu.ch/dem3</userinput>
    </para>
  </listitem>
</varlistentry>
<varlistentry>
  <term></term>
  <listitem>
      <para>
        <guilabel>Layout</guilabel> set to <userinput>Latitude</userinput>
      </para>
  </listitem>
</varlistentry>
<varlistentry>
  <term></term>
  <listitem>
      <para>
        <guilabel>Filename Convention</guilabel> set to <userinput>Normal</userinput>
      </para>
  </listitem>
</varlistentry>
</variablelist>
<para>
ATM &appname; does not auto download DEM data. If you want to get lots of data blocks, you may wish to use some other program get such as <application>curl</application> or <application>wget</application> to download them for an area.
</para>
<para>
  The location for DEM files stored on local disk is under the <xref linkend="Map"/> Layer <xref linkend="cache_location"/>,
  using the <userinput>Continent</userinput> style as this was how the original DEM server (pre 2021) worked.
</para>
<note>
<para>
Using many DEMs is memory intensive as every DEM block is loaded into memory. Depending on your computer's capability, it is probably unwise to attempt using too many blocks (perhaps 200+ it becomes an issue), so trying to use DEMs covering large countries/continents (USA, Australia etc...) is unlikely to work. In these conditions under Linux, &appname; may be automatically stopped by the "<ulink url="https://en.wikipedia.org/wiki/Out_of_memory/">OOM</ulink> Killer".
</para>
</note>

<section><title>Layer Properties</title>
<para>
Configurable properties are split into several sections:
</para>

<section><title>Drawing</title>
<variablelist>
<varlistentry>
<term><guilabel>Min Elev Colour</guilabel></term>
<listitem>
	<para>Explicit colour for those lower than the Min Elev.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Colour Scheme</guilabel></term>
<listitem>
	<para>Default or Delineate. Delineate allows selecting start and end colours, with in between colours automatically allocated.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Start Colour</guilabel></term>
<term><guilabel>End Colour</guilabel></term>
<listitem>
	<para>For the Delineate Colour Scheme.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Type</guilabel></term>
<listitem>
	<para>Absolute height or Height gradient.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Min Elev</guilabel></term>
<listitem>
	<para>The colourmap starts from this height.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Max Elev</guilabel></term>
<listitem>
	<para>The colourmap ends at this height.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Alpha</guilabel></term>
<listitem>
  <para>Control the <xref linkend="Alpha"/> value for transparency effects.</para>
</listitem>
</varlistentry>
</variablelist>

<para>
Colours for drawing the DEM are allocated in discrete units between the Min Elev and Max Elev heights.
Thus to see differences more clearly you may want to adjust these values to match the height variance around the area of interest.
</para>

</section>

<section><title>Download</title>
<variablelist>
<varlistentry>
<term><guilabel>Base URL</guilabel></term>
<listitem>
  <para>The server URL including the root location of the DEM files</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Layout</guilabel></term>
<listitem>
  <para>Describes how the DEM file directory structure on the server is laid out.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Filename Convention</guilabel></term>
<listitem>
  <para><userinput>Normal</userinput> means the filenames on the server are named like <filename>N12E034.hgt.zip</filename></para>
  <para><userinput>SRTMGL1</userinput> means the filenames on the server are named like <filename>N12E034.SRTMGL1.hgt.zip</filename></para>
</listitem>
</varlistentry>
</variablelist>
</section>

<section><title>Files</title>
<variablelist>
<varlistentry>
<term><guilabel>DEM Files</guilabel></term>
<listitem>
	<para>The list of files in use.</para>
	<para>Normally you do not need to manually edit this list.</para>
</listitem>
</varlistentry>
</variablelist>
</section>

</section><!-- Prop END -->

<section><title>Layer Operations</title>

<para>
Other than the standard operations (Cut, Paste etc...), there are no further specific operations available.
</para>

</section><!-- End Layer Ops -->

<section><title>Screenshot</title>

<figure>
<title>Screenshot: DEM Example</title>
<screenshot>
  <graphic format="JPG" fileref="figures/DEM_Example.png"/>
</screenshot>
<informalexample>
  <para>
    An example with an alternative colour scheme.
  </para>
</informalexample>
</figure>

</section><!-- End Screenshot -->

</section><!-- End DEM -->