]> git.street.me.uk Git - andy/viking.git/blame - help/C/viking.xml
[DOC] Update track operations help information.
[andy/viking.git] / help / C / viking.xml
CommitLineData
f8b8a0b5
GB
1<?xml version="1.0"?>
2<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
4 <!ENTITY appname "Viking">
5 <!ENTITY app "<application>Viking</application>">
05593e97 6 <!ENTITY appversion "1.0">
f8b8a0b5 7 <!ENTITY manrevision "0.1">
7233fcb6 8 <!ENTITY date "October 2010">
f8b8a0b5
GB
9]>
10<!--
11 (Do not remove this comment block.)
12 Maintained by the GNOME Documentation Project
13 http://live.gnome.org/DocumentationProject
14 Template version: 3.0 beta
15 Template last modified 2006-11-21
16
17-->
18<!-- =============Document Header ============================= -->
19<article id="index" lang="en">
20 <articleinfo>
21 <title>&app; Manual</title>
22 <abstract role="description">
23 <para>&app; is a free/open source program to manage GPS data.</para>
24 </abstract>
25
26 <copyright>
27 <year>2009</year>
28 <holder>Guilhem Bonnefille</holder>
29 </copyright>
30
31 <!-- An address can be added to the publisher information. -->
32 <publisher role="maintainer">
33 <publishername>GNOME Documentation Project</publishername>
34 </publisher>
35
36 <xi:include href="legal.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
37 <!-- The file legal.xml contains link to license for the documentation,
38 and other legal stuff such as "NO WARRANTY" statement.
39 Please do not change any of this. -->
40
41 <authorgroup>
42 <author>
43 <firstname>Guilhem</firstname>
44 <surname>Bonnefille</surname>
45 </author>
25c0a45b
RN
46 <author>
47 <firstname>Rob</firstname>
48 <surname>Norris</surname>
49 </author>
a43e638f
RN
50 <!-- Contributors from the Wiki history -->
51 <author>
52 <firstname>username:</firstname>
53 <surname>Alexxy</surname>
54 </author>
55 <author>
56 <firstname>username:</firstname>
57 <surname>Vikingis</surname>
58 </author>
59 <author>
60 <firstname>username:</firstname>
61 <surname>Tallguy</surname>
62 </author>
63 <author>
64 <firstname>username:</firstname>
65 <surname>EliotB</surname>
66 </author>
67 <author>
68 <firstname>Alex</firstname>
69 <surname>Foobarian</surname>
70 </author>
71 <!-- END -->
f8b8a0b5
GB
72 </authorgroup>
73
74 <revhistory>
75 <revision>
76 <revnumber>&appname; Manual V&manrevision;</revnumber>
77 <date>&date;</date>
78 <revdescription>
79 <para role="author">Guilhem Bonnefille <email>guilhem.bonnefille@gmail.com</email></para>
80 <para role="publisher">GNOME Documentation Project</para>
81 </revdescription>
82 </revision>
83 </revhistory>
84
4502fc82 85 <releaseinfo>This manual describes version &appversion; of &appname;.</releaseinfo>
f8b8a0b5
GB
86
87 <legalnotice>
88 <title>Feedback</title>
89 <para>To report a bug or make a suggestion regarding the &app; application or
90 this manual, follow the directions in the
91 <ulink url="ghelp:user-guide?feedback-bugs" type="help">Feedback section of the GNOME User Guide</ulink>.
92 </para>
93 </legalnotice>
94 </articleinfo>
95
96 <indexterm zone="index">
97 <primary>&app;</primary>
98 </indexterm>
99<!-- ============= Document Body ============================= -->
4502fc82 100<section id="introduction">
f8b8a0b5 101 <title>Introduction</title>
6928e16b 102<para>
7233fcb6
RN
103&appname; aims to be easy to use, yet powerful in accomplishing a wide
104variety of tasks. Some of the things you can use &appname; for are:
6928e16b
GB
105</para>
106<itemizedlist mark="opencircle"><listitem>
107<para>
108Uploading and downloading waypoints, tracks to/from GPS.
109</para>
110</listitem>
111<listitem>
112<para>Preparing tracks and waypoints for trips using maps from services
7233fcb6 113such as OpenStreetMap (OSM) and/or Terrasever. The data is only needed to be uploaded to
6928e16b
GB
114your GPS before you leave. The maps together with your tracks and
115waypoints can also be printed and used during the trip.
116</para>
117</listitem>
118<listitem>
119<para>
120After trips, tracks and waypoints from GPS can be downloaded, stored, managed and reused in your (or your friends') later trips.
121</para>
122</listitem>
123<listitem>
124<para>
9ca89c29 125Analyzing Off Highway Vehicle (OHV) and hiking trips, understanding where you went and how far you were from something.
6928e16b
GB
126</para>
127</listitem>
128<listitem>
129<para>Making waypoints and tracks to follow to easily get someplace
9ca89c29 130you've never been before or don't have GPS data for but online
6928e16b
GB
131maps exist for it.
132</para>
133</listitem>
134<listitem>
135<para>
136Making maps with coordinate lines.
137</para>
138</listitem>
139<listitem>
140<para>
141Grouping data from multiple trips using a hierarchical data manager.
142</para>
143</listitem>
144<listitem>
145<para>
146Analyzing speed at different places (to some degree), adding waypoints where you forgot to mark one but did slow down or stop.
147</para>
148</listitem>
149<listitem>
150<para>
9ca89c29 151Downloading and storing OSM and/or Terraserver maps on your hard drive and looking at them later.
6928e16b
GB
152</para>
153</listitem>
154<listitem>
155<para>
156Editing tracks and trackpoints, joining and splitting up tracks
157</para>
158</listitem>
0ef60ec1 159<listitem>
6928e16b 160<para>
9ca89c29 161Show the live GPS position on the map (for use on a mobile device - e.g. a laptop)
6928e16b
GB
162</para>
163</listitem>
9ca89c29
RN
164</itemizedlist>
165<note>
6928e16b 166<para>
9ca89c29 167&appname; is under continual improvement: see the potential areas in the <ulink url="http://sourceforge.net/apps/mediawiki/viking/index.php?title=Main_Page#TODO_.2F_Ideas"><citetitle>Roadmap / Wishlist</citetitle></ulink>:
6928e16b 168</para>
9ca89c29 169</note>
4502fc82 170</section>
7233fcb6 171
6928e16b 172<section><title>General Concepts</title>
7233fcb6
RN
173<section><title>Layers</title>
174<para>
175'Layers' is concept one may know from powerful graphics editors such as Photoshop or GIMP.
176Instead of putting all the data on the same level, it is stacked (i.e. layered) with different data over one another.
177This can make useful for analysis and general handling of various sets of data.
178</para>
179<para>
180Unfortunately the downside of this complexity is remembering how differing layers of data can obscure other data.
181</para>
182<para>
183The Map layers have <ulink url="http://en.wikipedia.org/wiki/Alpha_compositing"><citetitle>Alpha Compositing</citetitle></ulink>,
184to create the appearance of partial transparency.
185By controlling this value one can see data below it in the layer heirarchy for interesting effects.
186</para>
187</section>
188<section><title>Layers Panel</title>
6928e16b
GB
189<para>
190The panel on the left is called the <emphasis role="bold">layers panel</emphasis>.
191It determines which layers and sublayers (such as tracks and waypoints)
192are shown, and the order in which they are drawn. Layers list on the
193top of the layers panel are drawn last. You can change the order by
194drag and drop, or by selecting a layer and using the up and down
195buttons at the bottom of the layers panel.
196</para>
7233fcb6
RN
197</section>
198<section><title>Viewport</title>
6928e16b 199<para>
7233fcb6 200The main &appname; area where the layer data is drawn, is called the <emphasis role="bold">viewport</emphasis>.
6928e16b 201</para>
6928e16b 202</section>
7233fcb6 203<section><title>Statusbar</title>
7233fcb6 204<para>This provides a readout of various information:</para>
eabf51fc
GB
205<itemizedlist>
206<listitem><para>The currently selected (mouse pointer) tool</para></listitem>
207<listitem><para>The number of items to process in the background - normally this the number in the map tile download queue</para></listitem>
208<listitem><para>The zoom factor</para></listitem>
209<listitem><para>The location of the mouse pointer (and potentially height information if DEM data is available)</para></listitem>
210</itemizedlist>
7233fcb6 211</section>
d587678a
GB
212
213<section><title>Projections</title>
214<para>
215&appname; supports differents projections:
216<itemizedlist>
217<listitem>
218<para>UTM</para>
219</listitem>
220<listitem>
221<para>LatLon (also called EPSG:4326)</para>
222</listitem>
223<listitem>
224<para>Mercator (also called Spherical Mercator)</para>
225</listitem>
226</itemizedlist>
227</para>
228</section>
7233fcb6
RN
229</section>
230
6928e16b 231<section><title>Layers</title>
036c28fc 232
6928e16b
GB
233<section><title>TrackWaypoint Layer</title>
234<para>
235TrackWaypoint layers display GPS data (tracks and waypoints).
236</para>
7233fcb6 237<para>One way to create new waypoints is to copy a
6928e16b 238latitude/longitude coordinate pair, such as the one shown on most
0ef60ec1
GB
239geocaches, and paste it into an active TrackWaypoint layer. &appname; can
240automatically recognize several variations of the lat/lon format.
241</para>
6928e16b
GB
242<para>
243By right-clicking tracks and waypoints in the layers panel, you can do
244many things with tracks and waypoints. You can easily find a specific
245track or waypoint by expanding the Tracks or Waypoints sublayers in the
246layers panel to show all tracks or waypoints, and typing the name of
247the track/waypoint.
248</para>
036c28fc 249
6928e16b
GB
250<section><title>Layer Operations</title>
251<para>
252The layer has a context menu with several operations.
253</para>
036c28fc
RN
254
255<section><title>View Layer</title>
256<para>
257Version1.1+: This will automatically move the viewport and select the best zoom level to see the whole layer (i.e. tracks and waypoints).
258</para>
259</section>
260
261<section><title>View All Tracks</title>
262<para>
263Version1.1+: This will automatically move the viewport and select the best zoom level to see the all the tracks in the layer (ignoring positions of any waypoints).
264</para>
265</section>
266
267<section><title>View All Waypoints</title>
268<para>
269Version1.1+: This will automatically move the viewport and select the best zoom level to see the all the waypoints in the layer (ignoring positions of any tracks).
270</para>
271</section>
272
273<section><title>Goto Center of Layer</title>
274<para>
275This will automatically move the viewport to see the whole layer (i.e. tracks and waypoints). It does not adjust the zoom level.
276</para>
277</section>
278
279<section><title>Goto Waypoint</title>
280<para>
281This opens a dialog box to enter a name of waypoint to search for. If it is found the viewport is centred on it.
282</para>
283<note>
284<para>
285Note this search is not very clever and only finds exact matches.
286You are probably better off expanding the waypoint list and directly start typing, as mentioned above, which finds a match based on each letter typed.
287</para>
288</note>
289</section>
290
291<section><title>Export Layer</title>
292<para>
293The layer (all tracks and waypoints) can be exported to a file GPX, GPSPoint or GPSMapper format.
294</para>
295<para>
296Version1.1+: An individual track can be exported to a GPX file via the track menu.
297</para>
298</section>
299
cc1083b3 300<section id="new_wp"><title>New Waypoint</title>
036c28fc
RN
301<para>
302This opens a dialog box to create a new waypoint. A default name will be suggested and the default position is the center of the viewport.
303</para>
304</section>
305
306<section><title>Add Wikipedia Waypoints</title>
307<para>
308This gets 'interesting' points from Wikipedia for the specified view: either within the extent of layer bounds or within the current viewport boundary.
309</para>
310</section>
311
312<section id="osm_upload"><title>Upload To OSM</title>
313<para>
314This opens a dialog to upload all tracks and waypoints to OSM traces.
315Useful if you are an OSM contributor (you will need an OSM account), these details can be stored in &appname; preferences.
316</para>
6928e16b 317<para>
036c28fc 318 &appname; allows you to edit a track, e.g. remove duplicate points, perhaps remove track points leading to your home and then upload it to OSM.
6928e16b 319</para>
0ef60ec1 320<note>
6928e16b 321<para>
036c28fc
RN
322 <emphasis role="bold">Warning!</emphasis>
323The password is transferred <emphasis role="bold">unencrypted</emphasis> in every request sent to the OSM server. This is due to OSM's basic authentication method.
6928e16b 324</para>
0ef60ec1 325</note>
036c28fc 326</section>
6928e16b 327
036c28fc
RN
328<section><title>Filter</title>
329<section><title>Simplify All Tracks</title>
330<para>
331This opens dialog to request the number of points each track will be simplified using <application>GPSBabel</application>. The result is put into a new layer. The simplification method removes points considered to be in a 'near straight line', thus reducing the number of points and attempting to keep the most important turning points.
332</para>
333</section>
334<section><title>Remove Duplicate Waypoints</title>
335<para>
336Remove Duplicate Waypoints - fairly self explainatory, with the results created in a new layer.
337</para>
338<note>
339<para>
340However it only considers a precise position (waypoints only 1 metre away from each other are considered different) and also doesn't consider if the waypoints have different comments, symbols or images.
341</para>
342</note>
343</section>
6928e16b
GB
344</section>
345
036c28fc
RN
346<section id="filter_with_track"><title>Filter With <emphasis>Trackname</emphasis></title>
347<para>
348This runs <application>GPSBabel</application> on the layer using information from a previously selected track (select via the track menu "Use With Filter" option) with the following command types:
349</para>
350<itemizedlist>
351<listitem><para>Waypoints Inside This</para></listitem>
352<listitem><para>Waypoints Outside This</para></listitem>
353</itemizedlist>
354<para>
355The result is generated in a new Track/Waypoint layer.
356</para>
6928e16b 357</section>
036c28fc
RN
358
359</section><!-- End TRW Layer Options -->
360
6928e16b
GB
361<section><title>Track Properties</title>
362<para>
363Show many useful statistics about a track, including a
364elevation-distance graph and a speed-time graph (if data is available).
365You can click these graphs to jump to the point in the track. You can
366also reverse a track, delete duplicates, and split a track from its
367component segments (discontinuous breaks in a track) into separate
368tracks.
369</para>
370<para>
371The following colors are used in the elevation-distance graph:
372</para>
0ef60ec1
GB
373<variablelist>
374<varlistentry>
7233fcb6 375<term>'Main' colour - this is dependent on your Desktop theme - often blue by default</term>
0ef60ec1
GB
376<listitem><para>elevation data in graph</para></listitem>
377</varlistentry>
378<varlistentry>
379<term>Yellow</term>
6928e16b 380<listitem>
0ef60ec1 381<para>no elevation data</para>
6928e16b 382</listitem>
0ef60ec1
GB
383</varlistentry>
384<varlistentry>
385<term>Green</term>
6928e16b 386<listitem>
0ef60ec1 387<para>elevation data from DEM</para>
6928e16b 388</listitem>
0ef60ec1
GB
389</varlistentry>
390<varlistentry>
391<term>Red</term>
6928e16b 392<listitem>
0ef60ec1 393<para>speed</para>
6928e16b 394</listitem>
0ef60ec1
GB
395</varlistentry>
396</variablelist>
6928e16b
GB
397
398</section>
d45662d5 399
6928e16b 400<section><title>Track Operations</title>
d45662d5
RN
401
402<section><title>Goto</title>
403<para>
404This centers the viewport on the selected position on the track:
405</para>
406<itemizedlist>
407<listitem><para>Startpoint</para></listitem>
408<listitem><para>"Center" - the notional center from the bounds of the track</para></listitem>
409<listitem><para>Endpoint</para></listitem>
410<listitem><para>Version1.1+: Highest Altitude</para></listitem>
411<listitem><para>Version1.1+: Lowest Altitude</para></listitem>
412<listitem><para>Version1.1+: Maximum Speed</para></listitem>
413</itemizedlist>
414</section>
415
416<section><title>View</title>
417<para>
418Version1.1+: This centers the viewport on the track and selects the best zoom level to see it.
419</para>
420</section>
421
422<section><title>Merge By Time</title>
0ef60ec1
GB
423<para>
424This operation repeatedly tries to merge the right-clicked track
6928e16b
GB
425with tracks in the same TrackWaypoint layer. The tracks which are
426merged are those which have at least one trackpoint less than some
427threshold time away. This way, if you somehow end up with lots of small
428segments (say, caused by turning the GPS on and off) you can merge them
0ef60ec1
GB
429easily into one track.
430</para>
d45662d5 431</section>
6928e16b 432
d45662d5
RN
433<section><title>Merge With Other Tracks</title>
434<para>
435This opens a dialog listing the other tracks in the same TrackWaypoint layer, from which one can select the other tracks to merge with.
436</para>
6928e16b 437</section>
d45662d5
RN
438
439<section><title>Split By Time</title>
6928e16b
GB
440<para>
441This operation will split a single track into segments wherever the
442time interval between successive trackpoints is larger than some
443threshold. This is useful when processing raw NMEA GPS data, especially
0ef60ec1
GB
444taken over a long time.
445</para>
6928e16b 446</section>
d45662d5 447
6928e16b
GB
448<section><title>Apply DEM data</title>
449<para>
450If any DEM data is loaded, this will apply the DEM data to give the track elevation data.
451</para>
d45662d5 452</section>
6928e16b 453
d45662d5
RN
454<section><title>Export Track as GPX</title>
455<para>
456Version1.1+: This allows exporting the track as a GPX file by opening a file save dialog.
457</para>
6928e16b 458</section>
d45662d5
RN
459
460<section><title>Extend Track End</title>
6928e16b 461<para>
d45662d5 462Changes the current tool to add trackpoints to the end of the track.
6928e16b 463</para>
d45662d5 464</section>
6928e16b 465
d45662d5
RN
466<section><title>Extend Using Magic Scissors</title>
467<para>
468Enables the Magic Scissors tool. Thus on a subsequent left click in the viewport, a route is calculated from the end of track to that point using Google's route service and applied to the track.
469</para>
6928e16b 470</section>
d45662d5 471
6928e16b
GB
472<section><title>Upload to OSM</title>
473<para>
d45662d5 474Same as the layer <link linkend="osm_upload">Upload to OSM</link>, but only applies to the track.
6928e16b 475</para>
d45662d5 476</section>
6928e16b 477
d45662d5
RN
478<section><title>Use With Filter</title>
479<para>
480This selects the track to be used in the <link linkend="filter_with_track">Filter With <emphasis>Trackname</emphasis></link> feature.
481</para>
6928e16b 482</section>
d45662d5 483
6928e16b 484<section><title>View Google Directions</title>
0ef60ec1 485<para>
d45662d5
RN
486This option is only available on a track created using the Magic Scissors tool.
487</para>
488<para>
489Launch a web browser to see the Google directions page which yielded the route.
0ef60ec1
GB
490</para>
491<note>
492<para>
d45662d5 493The record of the Google route is stored in the track's comment, so if the comment is changed (or the route was created by something other than the Magic Scissors tool) this will not work correctly.
6928e16b 494</para>
0ef60ec1 495</note>
6928e16b
GB
496</section>
497
d45662d5 498</section><!-- End Track Options -->
cc1083b3 499
6928e16b 500<section><title>Waypoint Operations</title>
cc1083b3
RN
501
502<section><title>Goto</title>
6928e16b 503<para>
cc1083b3 504This centers the viewport on the selected waypoint.
6928e16b 505</para>
cc1083b3 506</section>
6928e16b 507
cc1083b3
RN
508<section><title>Visit Geocache Webpage</title>
509<para>
510If the waypoint's name is in Geocache form (GCXXXXX) you can launch a web browser to go to the Geocache page.
511</para>
6928e16b
GB
512</section>
513
cc1083b3
RN
514<section><title>New Waypoint</title>
515<para>
516Same as the layer <link linkend="new_wp">New Waypoint</link>.
517</para>
6928e16b
GB
518</section>
519
cc1083b3
RN
520</section><!-- WP END -->
521
036c28fc
RN
522</section><!-- TRW Layer END -->
523
7233fcb6 524<section><title>GPS Layer</title>
0ef60ec1 525<para>
7233fcb6 526The GPS layer is responsible for uploading and downloading GPS data
6928e16b 527from a GPS device. It also is responsible for realtime GPS tracking.
7233fcb6 528Expand the GP SLayer in the layers panel to see the two TRWLayers it
6928e16b 529uses for uploading and downloading. To upload, download, or use
7233fcb6 530realtime tracking, right-click the GPS layer and click the appropiate
6928e16b
GB
531menu item.
532</para>
0ef60ec1 533
6928e16b
GB
534<section><title>Download</title>
535<para>
7233fcb6 536To download data from the GPS, right-click the GPS layer and click <guimenuitem>Download from GPS</guimenuitem>.
6928e16b
GB
537</para>
538
539</section>
540<section><title>Upload</title>
0ef60ec1
GB
541<para>
542To upload data to the GPS, first populate the GPS Upload child
6928e16b
GB
543layer of the GPS layer (either by creating waypoints/tracks in it, or
544copying and pasting or dragging waypoints/tracks from another layer).
7233fcb6 545Then right-click the GPS layer and click <guimenuitem>Upload to GPS</guimenuitem>.
6928e16b
GB
546</para>
547
548</section>
7233fcb6 549<section><title>Realtime Tracking</title>
0ef60ec1
GB
550<para>
551You must set up gpsd correctly or use a GPSD server and put the
7233fcb6
RN
552correct information in the GPS layer properties dialog. Then right-click
553the layer and select <guimenuitem>Start Realtime Tracking</guimenuitem>.
6928e16b
GB
554</para>
555
556</section>
557
558</section>
7233fcb6 559<section><title>(Digital Elevation Model) DEM Layer (todo)</title>
6928e16b 560<para>
7233fcb6 561The current NASA SRTM server is: http://dds.cr.usgs.gov/srtm/version2_1/
6928e16b
GB
562</para>
563
564</section>
565
566</section>
f95c9f7c 567
6928e16b
GB
568<section><title>Tools</title>
569<para>
570You can use the scroll wheel and the right-click to zoom and pan no matter what tool you are using.
571</para>
572<para>
f95c9f7c 573Scroll: zoom in and out without changing the center (also Ctrl+, Ctrl- [*not* KeyPad +/-])
6928e16b
GB
574</para>
575<para>
576Ctrl-scroll: pan north-south (also Ctrl-up, Ctrl-down)
577</para>
578<para>
579Shift-scroll: pan east-west (also Ctrl-left, Ctrl-right)
580</para>
581<para>
582Ctrl-shift-scroll: zoom in and out, keeping mouse over same location (like Google maps)
583</para>
584<para>
f95c9f7c 585Left or Middle-click: make the clicked point on the map the center
6928e16b
GB
586</para>
587<para>
588Middle-click and drag: pan
589</para>
f95c9f7c 590
6928e16b
GB
591<section><title>Zoom</title>
592<para>
593Zooms in and out on the clicked part of the map.
594</para>
6928e16b 595</section>
f95c9f7c 596
6928e16b 597<section><title>Ruler</title>
9ca89c29
RN
598<para>
599The ruler is used to measure the bearing and distance between two points: Click on first point and then move the mouse point around - the values will be continually updated.
600A second click will 'freeze' the ruler at that point.
6928e16b 601</para>
6928e16b 602</section>
f95c9f7c 603
6928e16b
GB
604<section><title>TrackWaypoint Layer Tools</title>
605<para>
f95c9f7c 606You must have a TrackWaypoint Layer selected to use these tools.
6928e16b 607</para>
f95c9f7c 608<section><title>Create Waypoint</title>
6928e16b 609<para>
f95c9f7c 610Left click will open the new waypoint dialog using the specified position.
6928e16b 611</para>
f95c9f7c
RN
612</section>
613
614<section><title>Create/Begin Track</title>
6928e16b 615<para>
f95c9f7c
RN
616Left click to create a new trackpoint. If it's the initial trackpoint you will be asked to enter a name for the track.
617If <keycap>Ctrl</keycap> is held at the same time, it will jump the new trackpoint position to a nearby existing trackpoint.
618Right click or <keycap>Backspace</keycap> : undo one point.
6928e16b
GB
619</para>
620<para>
f95c9f7c 621Double click or <keycap>Escape</keycap> : finish track creation.
6928e16b 622</para>
6928e16b 623</section>
f95c9f7c 624
6928e16b
GB
625<section><title>Edit Waypoint</title>
626<para>
f95c9f7c
RN
627Left Click/drag: select/move a waypoint.
628If <keycap>Ctrl</keycap> is held at the same time, it will jump the waypoint position to a nearby existing trackpoint.
629If <keycap>Shift</keycap> is held at the same time, it will jump the waypoint position to a nearby existing waypoint.
6928e16b
GB
630</para>
631<para>Right-click on waypoint: opens a menu with waypoint actions (the
632same menu accessed by right-clicking the waypoint in the layers panel)
633</para>
6928e16b 634</section>
f95c9f7c 635
6928e16b
GB
636<section><title>Edit Trackpoint</title>
637<para>
f95c9f7c
RN
638Left click near a trackpoint (in screen pixel terms) to bring up the Track Point Edit dialog on that trackpoint.
639Whilst the edit dialog is already open, left click again and drag enables moving of the trackpoint.
640If <keycap>Ctrl</keycap> is held at the same time, it will jump the new trackpoint position to a nearby existing trackpoint.
6928e16b
GB
641</para>
642<para>
f95c9f7c 643Options in the Track Point Edit dialog include: change position, go to next, go to previous, delete, insert (halfway to next trackpoint) and splitting the track.
6928e16b 644</para>
6928e16b 645</section>
f95c9f7c 646
6928e16b
GB
647<section><title>Show Picture</title>
648<para>
f95c9f7c
RN
649Opens an image viewer with the picture associated with the waypoint.
650On Linux this uses <application>eog</application>.
651On Windows this uses the default system image viewer.
6928e16b 652</para>
6928e16b 653</section>
f95c9f7c 654
6928e16b
GB
655<section><title>Magic Scissors</title>
656<para>Creates a track using Google maps routing between two points.
f95c9f7c 657Requires an internet connection. Click one point, then click another to
6928e16b
GB
658create a track.
659</para>
660<para>
f95c9f7c 661Right-click: undo last routing (only track removed - not any waypoints)
6928e16b
GB
662</para>
663<para>
f95c9f7c 664<keycap>Ctrl</keycap>: continue previous track
6928e16b 665</para>
6928e16b
GB
666</section>
667
668</section>
f95c9f7c 669
6928e16b
GB
670<section><title>Georef Map Layer Tools</title>
671<para>
672You must have a Georef Map Layer selected to use these tools.
673</para>
674<section><title>Georef zoom</title>
675<para>Changes the zoom level of the georeferenced map and changes the
7233fcb6 676&appname; zoom level accordingly. Useful if you are trying to match GPS
6928e16b
GB
677data to a georeferenced map.
678</para>
6928e16b 679</section>
f95c9f7c 680
6928e16b
GB
681<section><title>Georef move</title>
682<para>
683Drag to move the georeferenced map.
684</para>
6928e16b 685</section>
6928e16b 686</section>
f95c9f7c 687
6928e16b
GB
688<section><title>Map Download</title>
689<para>
f95c9f7c
RN
690You must have a Map Layer selected to use this.
691</para>
692<para>
6928e16b
GB
693Click to download a single tile. Drag to download tiles in the dragged rectangle area.
694</para>
695<para>
696Right-click to redownload bad/all tiles. Right-click and drag to redownload bad/all tiles in the dragged rectangle area.
697</para>
6928e16b 698</section>
f95c9f7c 699
6928e16b
GB
700<section><title>DEM Download</title>
701<para>
f95c9f7c
RN
702You must have a DEM Layer selected to use this.
703</para>
704<para>
6928e16b
GB
705Click to download and import a DEM file.
706</para>
6928e16b
GB
707</section>
708
7233fcb6 709<section><title>Webtools</title>
5ab84304
GB
710<para>
711Many services are available only via a web browser (Google Maps, OpenStreetMap Potlach editor, etc.).
712</para>
713<para>
714Jumping from &app; to such service can become annoying.
715</para>
716<para>
0ef60ec1 717&appname; allows you to open such service directly at the position currently viewed in &app;.
5ab84304
GB
718</para>
719<para>
7233fcb6 720This feature is called <guilabel>Webtools</guilabel>. It is also known as External Tools.
5ab84304 721</para>
5ab84304
GB
722</section>
723
3e850af1 724</section>
f95c9f7c 725
0ef60ec1 726<!-- Preferences -->
3e850af1
GB
727<section><title>Preferences</title>
728<section><title>Localisation</title>
729<para>You can select units displayed by &appname; to best fit your usage.</para>
730<figure>
731<title>Properties dialog: units part</title>
732<screenshot>
733 <graphic format="PNG" fileref="figures/properties_units.png"/>
734</screenshot>
735</figure>
736<para>Concerning degrees, you can select the way to display them:
737<variablelist>
738<varlistentry>
739<term>DDD</term><listitem><para>decimal degree</para></listitem>
740</varlistentry>
741<varlistentry>
742<term>DDD</term><listitem><para>partial sexagesimal display: degrees, minutes and décimal part of minutes</para></listitem>
743</varlistentry>
744<varlistentry>
745<term>DMS</term><listitem><para>sexagesimal display: degrees, minutes and seconds</para></listitem>
746</varlistentry>
747</variablelist>
748</para>
749<figure>
750<title>Properties dialog: degree display options</title>
751<screenshot>
752 <graphic format="PNG" fileref="figures/properties_degree.png"/>
753</screenshot>
754</figure>
755</section>
a067ca58
GB
756<section><title>Tile's age</title>
757<para>This age is used to decided wether or not a new request to tile server must be done.
758</para>
759<para>Changing this value, you will increase or decrese the network load.</para>
760</section>
897e919b
GB
761<section><title>Default maplayer directory</title>
762<para>This property sets the default directory of the tiles cache.
763This value is used when you create a new map layer.
764</para>
765<para>You are still able to change this value in each map layer properties.</para>
766</section>
6928e16b
GB
767</section>
768<section><title>Mini-Howto's</title>
769<section><title>Getting Started</title>
770<para>
0ef60ec1 771To quickly get started using &appname;, follow these instructions.
6928e16b
GB
772</para>
773<section><title>Go to an area of interest</title>
774<para>
9ca89c29 775&appname;'s default location is a Manhatten, New York, USA, so you may need to pick another place that interests you.
6928e16b 776</para>
0ef60ec1
GB
777<procedure>
778<title>Method A</title>
779<step>
6928e16b 780<para>
0ef60ec1 781Use View - Go to to move to a coordinate of interest.
6928e16b 782</para>
0ef60ec1
GB
783</step>
784</procedure>
785<procedure>
786<title>Method B</title>
787<step>
7233fcb6
RN
788<para>Use the GPS Layer or <menuchoice><guimenu>File</guimenu><guimenuitem>Acquire</guimenuitem><guimenuitem>From GPS</guimenuitem></menuchoice>
789to load data directly from your GPS into &appname;.
4136d029 790Currently Garmin, Magellan, DeLorme and Navilink protocols are supported.
0ef60ec1 791</para>
7233fcb6
RN
792<note>
793<para>You must have write permission to the port used. For Unix like OS:</para>
794<para>/dev/ttyS0 is the first serial port</para>
795<para>/dev/ttyUSB0 is the first USB port</para>
796</note>
ad606d98 797<note><para>For DeLorme device support you will need GPSBabel v1.4.0+ installed</para></note>
0ef60ec1
GB
798</step>
799</procedure>
800<procedure>
801<title>Method C</title>
802<step>
803<para>Get data from files in GPX format. For other formats (kml,
804ozi...), use a converter such as GPSBabel to convert the files to GPX
805format first.
6928e16b 806</para>
0ef60ec1
GB
807</step>
808<step>
6928e16b 809<para>
7233fcb6 810Open up &appname; and use File - Open or File - Append
0ef60ec1 811file to open the file.
6928e16b 812</para>
0ef60ec1
GB
813</step>
814<step>
6928e16b 815<para>
0ef60ec1 816Expand Tracks or Waypoints. Right-click on the
7233fcb6 817track or waypoint of interest and select <guimenuitem>Goto "Center"</guimenuitem>.
6928e16b 818</para>
0ef60ec1
GB
819</step>
820</procedure>
821<procedure>
822<title>Method D</title>
823<step>
6928e16b 824<para>
0ef60ec1 825Use File - Append File to add your track and waypoint data to
7233fcb6 826&appname;. This has been tested with Geocaching.com's *.loc format,
0ef60ec1
GB
827(others(?)).
828</para>
829</step>
830<step>
831<para>
832Expand Tracks or Waypoints. Right-click on the tack or
7233fcb6 833point of interest and select <guimenuitem>Goto "Center"</guimenuitem>.
0ef60ec1
GB
834</para>
835</step>
836</procedure>
6928e16b
GB
837</section>
838<section><title>Add a map layer</title>
839<para>
8401. Use Layers - New Map Layer, and choose a suitable cache directory
0ef60ec1 841where you would like to store your tracks and click <guilabel>OK</guilabel>. Zoom to a
6928e16b
GB
842comfortable level (I suggest 4 mpp) by clicking the left and right
843mouse buttons on the gray area where your tracks are. Now from the menu
844choose Tools - Map Download, Click where you would like to download a
845map. Regardless of what tool you are using, the middle mouse button
846always pans. </para>
0ef60ec1 847<note>
6928e16b 848<para>
9ca89c29 849You need an open internet connection when you are downloading maps.
6928e16b 850</para>
0ef60ec1 851</note>
6928e16b
GB
852<para>
8531. You will notice the maps are being drawn on top of the tracks, which
854is probably not what you want. Look at the Layers Panel to the left.
855Notice how the layer named Map is ABOVE your TrackWaypoint layer that
856your GPS data is in. This means that it will be drawn last, or on top
857of the other layers. Select the Map layer from the list and click the
858down arrow button beneath the list. Your tracks will now be drawn over
859the map. </para>
860
861</section>
862
863</section>
7233fcb6 864<section><title>From 1st startup to GPS track (including offline maps)</title>
6928e16b 865<para>
7233fcb6
RN
866The first you'll see is an empty map, because &appname; in its default configuration will download maps only on demand.
867Before fetching unneeded data, one can position to a location of interest, e.g. Stuttgart: <menuchoice><guimenu>View</guimenu><guimenuitem>Go to Location</guimenuitem></menuchoice>, enter 'Stuttgart'.
6928e16b
GB
868</para>
869
6928e16b
GB
870<section><title>Fetching the maps</title>
871<para>
0ef60ec1 872<emphasis role="bold">Map</emphasis>
6928e16b 873</para>
0ef60ec1 874<procedure>
7233fcb6 875<step><para><menuchoice><guimenu>Layers</guimenu><guimenuitem>New Map Layer</guimenuitem></menuchoice></para></step>
4502fc82 876<step><para>in the layer properties dialogue choose e.g. <guilabel>OpenStreetMap (Mapnik)</guilabel>.</para></step>
0ef60ec1 877<step>
4502fc82
GB
878<para>For the moment, we keep the default <guilabel>Maps Directory</guilabel> (the directory in
879which the maps will be stored and can be used for offline usage).</para>
0ef60ec1
GB
880</step>
881<step>
882<para>Check <guilabel>Autodownload maps</guilabel> and keep the zoom level as <guilabel>Use Viking
883Zoom Level</guilabel>.</para>
884<note>
885<para>
886however, that these settings will play an important
887role in the pre-fetch for offline usage discussed later
888</para>
889</note>
890</step>
891</procedure>
6928e16b
GB
892<para>You'll see a map of Stuttgart. Using the mouse wheel, you can
893zoom in and out. The maps for the choosen resoltion will be downloaded
894automatically.
895</para>
896<para>
7233fcb6 897<emphasis role="bold">DEM Layer (Height Map)</emphasis>
4502fc82 898</para>
0ef60ec1 899<procedure>
7233fcb6
RN
900<step><para>Zoom out to 512.</para></step>
901<step><para><menuchoice><guimenu>Layers</guimenu><guimenuitem>New DEM Layer</guimenuitem></menuchoice></para></step>
4502fc82 902<step><para>Keep the download source as is (SRTM Global 90m), hit <guilabel>OK</guilabel>.</para></step>
0ef60ec1 903</procedure>
4502fc82 904
6928e16b
GB
905<para>In the layer listing on the left, the DEM layer should reside
906above the map layer. If this is not the case, highlight the DEM layer
0ef60ec1 907an shift it one up (using the arrow up button).
4502fc82 908</para>
0ef60ec1 909<procedure>
4502fc82
GB
910<step><para>highlight the DEM layer in the layer listing on the left</para></step>
911<step><para>in the toolbar, check DEM layer download/import (the last symbol)</para></step>
912<step><para>a left-click in the map window should then fetch the DEM data</para></step>
0ef60ec1 913</procedure>
0ef60ec1 914<para>
7233fcb6 915This might take some time.
6928e16b
GB
916</para>
917<para>
918Sometimes, a tile does not show up correctly (you might see only a
919black frame in the map window) because it got corrupted during
0ef60ec1 920transfer. In order to correct this, you can delete the corresponding
7233fcb6 921datafile in the cache. <programlisting> right-click the DEM layer properties</programlisting>
6928e16b
GB
922</para>
923<para>
0ef60ec1 924The <guilabel>DEM Files</guilabel> listing allows you to delete the specific tiles (alternatively do this from the command line).
6928e16b
GB
925</para>
926<para>
0ef60ec1 927You can also alter the Min. and Max. elevation in this dialogue.
6928e16b
GB
928</para>
929
930</section>
7233fcb6 931<section><title>GPS Track with Height Profile</title>
0ef60ec1
GB
932<procedure>
933<step><para>uncheck the DEM layer (the map show up again)</para></step>
7233fcb6 934<step><para><menuchoice><guimenu>Layers</guimenu><guimenuitem>New TrackWaypoint Layer</guimenuitem></menuchoice></para></step>
0ef60ec1 935</procedure>
6928e16b 936<para>
7233fcb6 937Ensure the new track layer is above the map layer.
4502fc82 938</para>
0ef60ec1
GB
939<procedure>
940<step><para>expand trackwaypointlayer, select <guimenuitem>Tracks</guimenuitem></para></step>
7233fcb6
RN
941<step>
942<para>
943in the tools menu choose <guimenuitem>Begin Track</guimenuitem> which looks like this:
944<figure>
945<title>Begin Track Icon</title>
946<screenshot>
947 <graphic format="PNG" fileref="figures/begintr_18.png"/>
948</screenshot>
949</figure>
950</para></step>
0ef60ec1
GB
951<step><para>leftclick in the map window, enter a name</para></step>
952<step><para>click several times to generate a track (a right-click removes the last point)</para></step>
953<step><para>expand tracks in the layer menu, your track should show up, select it</para></step>
7233fcb6
RN
954<step><para>right click your track, select <guimenuitem>Apply DEM data</guimenuitem></para></step>
955<step><para>right click your track again, select <guimenuitem>Properies</guimenuitem></para></step>
956<step><para>click the tab <guilabel>Elevation-distance</guilabel> - enjoy the plot</para></step>
0ef60ec1 957</procedure>
6928e16b 958<para>
0ef60ec1 959In order to save this setting for later usage
4502fc82 960</para>
0ef60ec1 961<procedure>
7233fcb6
RN
962<step><para>click <guilabel>OK</guilabel> in the <guilabel>Track Properties</guilabel> dialog</para></step>
963<step><para><menuchoice><guimenu>File</guimenu><guimenuitem>Save As</guimenuitem></menuchoice>, choose a name (you can open this <emphasis>view</emphasis> later via <menuchoice><guimenu>file</guimenu><guimenuitem>Open</guimenuitem></menuchoice>).</para></step>
0ef60ec1 964</procedure>
6928e16b
GB
965
966</section>
967<section><title>Usecase: offline data for holiday</title>
968<para>
0ef60ec1
GB
969Suppose you want to have the map and DEM data offline for your holiday in Italy near Bologna.
970</para>
971<procedure>
7233fcb6
RN
972<step><para>Start a new &appname; session.</para></step>
973<step><para><menuchoice><guimenu>View</guimenu><guimenuitem>Go to Location</guimenuitem></menuchoice>, enter Bologna</para></step>
974<step><para><menuchoice><guimenu>Layers</guimenu><guimenuitem>New Map Layer</guimenuitem></menuchoice></para></step>
4502fc82
GB
975<step><para>Choose e.g. <guilabel>OpenStreetMap (mapnik)</guilabel>.</para></step>
976<step><para>adapt the <guilabel>maps directory</guilabel> e.g. to <filename>/home/user/.viking-map-holiday/</filename>.
0ef60ec1 977This allows you to delete the map stuff after holiday without purging the rest of your maps.
4502fc82
GB
978</para></step>
979<step><para>check <guilabel>autodownload map</guilabel></para></step>
980<step><para>keep <guilabel>viking zoom level</guilabel></para></step>
7233fcb6 981<step><para>zoom out to 1024</para></step>
4502fc82
GB
982<step><para>add a DEM layer (as discussed above)</para></step>
983<step><para>download the DEM data</para></step>
0ef60ec1
GB
984</procedure>
985<para>In the &app; version discussed here, the DEM data automatically
986are stored in <filename>/home/user/.viking-maps/</filename>. You can move the corresponding
987tiles into <filename>.viking-map-holiday/</filename> if you like.
988</para>
989<para>
990<emphasis role="bold">Download map data for all zoom levels</emphasis>
991</para>
992<procedure>
4502fc82
GB
993<step><para>uncheck the DEM layer for the map to show up</para></step>
994<step><para>navigate the map to be centered at Bologna</para></step>
7233fcb6 995<step><para>choose the zoom such, that all regions of interest are displayed in the map window (e.g. 1024)</para></step>
0ef60ec1
GB
996<step>
997<para>follow this sequence until you have all tiles for all zoom levels you need</para>
998<substeps>
7233fcb6 999<step><para>right-click the map layer properties</para></step>
4502fc82 1000<step><para>set the zoomlevel explicitely one below the last (in the first cycle 512), hit OK</para></step>
7233fcb6
RN
1001<step><para>right click the map layer <guimenuitem>Download Missing Onscreen Maps</guimenuitem></para></step>
1002<step><para>wait until all tiles for that resolution have been downloaded</para></step>
0ef60ec1
GB
1003</substeps>
1004</step>
1005</procedure>
1006<para>This may take some time and hd capacity. Lixus wrote a set of
6928e16b 1007scripts which allow to download the map tiles for several zoom-level in
0ef60ec1 1008parallel from the command line.
6928e16b
GB
1009</para>
1010<para>
1011Do not forget to save your configuration (as discussed above).
1012</para>
1013
1014</section>
1015
1016</section>
1017<section><title>Uploading data to OpenStreetMap</title>
1018<para>
7233fcb6 1019It is possible to upload data directly from &appname; to OpenStreetMap.
6928e16b 1020</para>
0ef60ec1
GB
1021<formalpara>
1022<title>Upload a layer</title>
6928e16b
GB
1023<para>
1024One solution is to upload whole a TrackWaypoint layer. To do this,
0ef60ec1
GB
1025simply select the layer and right click on it. Then, select <guimenuitem>Upload to
1026OSM</guimenuitem>.
6928e16b 1027</para>
0ef60ec1
GB
1028</formalpara>
1029<formalpara>
1030<title>Upload a single track</title>
6928e16b
GB
1031<para>One solution is to upload whole a TrackWaypoint layer. To do
1032this, simply select the layer and right click on it. Then, select
0ef60ec1 1033<guimenuitem>Upload to OSM</guimenuitem>.
6928e16b 1034</para>
0ef60ec1
GB
1035</formalpara>
1036<formalpara>
1037<title>Fill in the form</title>
6928e16b 1038<para>
7233fcb6 1039In both cases, &appname; will retain some information.
6928e16b 1040The email field is the email you used to subscribed into OSM.
6928e16b 1041The password field is the password you used with this account.
6928e16b 1042The filename is the name you want your upload has on the server. This information is displayed by the osm server.
6928e16b 1043The description is some descriptive information.
0ef60ec1
GB
1044The tags field is a white separated list of tag.
1045</para>
1046</formalpara>
6928e16b
GB
1047
1048</section>
1049<section><title>Geocoded Photo</title>
1050<para>
1051HOWTO GEOCODE YOUR PHOTOS AND SEE THEM IN VIKING
1052</para>
1053<para>1) Synchronize your camera's clock with your GPS clock. If your
1054camera's clock doesn't have a seconds value you can change, you might
1055try setting the minute value just when the minute changes.
1056</para>
1057<para>
10582) Activate the track log on your GPS.
1059</para>
1060<para>3) Get outside and take some pictures with your camera while
1061making sure your GPS has reception. If you forgot to turn your GPS on
1062or forgot to bring it when you took a picture but you know where you
1063took the picture, you can make a waypoint with a name of the format
1064YYMMDDhhmm, representing the time the picture was taken, to record
1065where you were at that time.
1066</para>
1067<para>4) Get home and download your pictures and GPS data. You can
1068download the GPS data several ways. The first is using gpspoint to
1069download from a Garmin GPS: <programlisting>gpspoint -p /dev/ttyS0 -dw -dt -of 2004-04-02-trip1</programlisting>
1070</para>
1071<para>
1072Where /dev/ttyS0 is the serial port the GPS is connected to. If you
1073don't have a Garmin GPS, or if you don't feel like install gpspoint,
1074you can use my version of gpsbabel with support for gpspoint files. You
1075can use gpsbabel to either translate the GPS data from a format you
1076already have the data in or download it directly from your GPS
1077reciever. A typical command line would something like this:<programlisting>gpsbabel -i garmin -f /dev/ttyS0 -o gpspoint -F 2004-04-02-trip1</programlisting>
1078</para>
1079<para>
10805) Launch GPSPhoto.
1081</para>
1082<para>
10836) You must now bring your photos into GPSPhoto. Either drag them (or
1084the directory containing them) from your favorite file manager to the
1085list on the left of the GPSPhoto window, or use the buttons below the
1086list to find them.
1087</para>
1088<para>
10897) Do the same for your GPS data file(s), dragging them to the list on the right of the GPSPhoto Window.
1090</para>
1091<para>8) Click the Execute button, and choose a location to save the
1092gpspoint file containing the waypoints for your photos. Then click OK
1093to write the waypoints to this file.
1094</para>
1095<para>
10969) Open Viking and open both your original GPS data file and your image waypoint file just created.
1097</para>
1098</section>
1099
ba322d06
GB
1100<section>
1101 <title>Extending Viking</title>
1102
1103 <para>Currently, &app; has some extention points based on configuration files. The file format is heavily inspired by the GtkBuilder file format: you specify the class of the GObject to build and set its properties. Technically, it is a XML file containing a "objects" root element. Inside this element, you set a collection of "object".</para>
1104 <para>Here is an example:
1105<programlisting><![CDATA[
1106<objects>
1107 <object class="ClassName">
1108 <property name="property_name1">Property value</property>
1109 <property name="property_name2">Property value</property>
1110 </object>
1111 ...
1112<objects>
1113]]>
1114</programlisting>
1115</para>
1116 <para>You can find more examples in the documentation part of the distribution.</para>
4502fc82 1117 <section>
ba322d06
GB
1118 <title>Map Source</title>
1119 <para>It is possible to add new map's sources. The file is <filename>~/.viking/maps.xml</filename>.</para>
1120 <para>An example of the file in the distribution <filename>doc/examples/maps.xml</filename>.</para>
90f15672 1121 <para>The VikSlippyMapSource allows to declare any map's source working like OpenStreetMap. It supports the following properties:
ba322d06
GB
1122 <variablelist>
1123 <varlistentry>
1124 <term>id</term>
1125 <listitem><para>this is an integer and should be unique as it used to identify the map source</para></listitem>
1126 </varlistentry>
1127 <varlistentry>
1128 <term>label</term>
1129 <listitem><para>the text displayed in the map's source selection dialog</para></listitem>
1130 </varlistentry>
1131 <varlistentry>
1132 <term>hostname</term>
1133 <listitem><para>the server's hostname (eg. "tile.openstreetmap.org")</para></listitem>
1134 </varlistentry>
1135 <varlistentry>
1136 <term>url</term>
1137 <listitem><para>the parametrized address of the tile, in the spirit of C printf format, with 3 "%d" fields for X, Y and Z (zoom level) (eg. "/%d/%d/%d.png")</para></listitem>
1138 </varlistentry>
1139 </variablelist>
1140 </para>
1b6659bd
GB
1141 <para>The VikTmsMapSource allows to declare any TMS service. It supports the following properties:
1142 <variablelist>
1143 <varlistentry>
1144 <term>id</term>
1145 <listitem><para>this is an integer and should be unique as it used to identify the map source</para></listitem>
1146 </varlistentry>
1147 <varlistentry>
1148 <term>label</term>
1149 <listitem><para>the text displayed in the map's source selection dialog</para></listitem>
1150 </varlistentry>
1151 <varlistentry>
1152 <term>hostname</term>
1153 <listitem><para>the server's hostname (eg. "tile.openstreetmap.org")</para></listitem>
1154 </varlistentry>
1155 <varlistentry>
1156 <term>url</term>
1157 <listitem><para>the parametrized address of the tile, in the spirit of C printf format, with 3 "%d" fields for X, Y and Z (zoom level) (eg. "/%d/%d/%d.png")</para></listitem>
1158 </varlistentry>
1159 </variablelist>
1160 </para>
90f15672
GB
1161 <para>The VikWmscMapSource allows to declare any WMS or WMS-C service. It supports the following properties:
1162 <variablelist>
1163 <varlistentry>
1164 <term>id</term>
1165 <listitem><para>this is an integer and should be unique as it used to identify the map source</para></listitem>
1166 </varlistentry>
1167 <varlistentry>
1168 <term>label</term>
1169 <listitem><para>the text displayed in the map's source selection dialog</para></listitem>
1170 </varlistentry>
1171 <varlistentry>
1172 <term>hostname</term>
1173 <listitem><para>the server's hostname (eg. "tile.openstreetmap.org")</para></listitem>
1174 </varlistentry>
1175 <varlistentry>
1176 <term>url</term>
1177 <listitem><para>the parametrized address of the tile, in the spirit of C printf format, with 4 "%s" fields for bounding box coordinates (eg. "/coord=%s,%s,%s,%s")</para></listitem>
1178 </varlistentry>
1179 </variablelist>
1180 </para>
4502fc82 1181 </section>
ba322d06 1182
4502fc82 1183 <section>
ba322d06
GB
1184 <title>Go-to search engines</title>
1185 <para>It is possible to add new new search engines for the "Go-To" feature. The file is <filename>~/.viking/goto_tools.xml</filename>.</para>
1186 <para>An example of the file in the distribution <filename>doc/examples/goto_tools.xml</filename>.</para>
1187 <para>Currently, there is a single object class available: VikGotoXmlTool. Such feature allows to declare any search engine using a XML format as result.</para>
1188 <para>The related properties are:
1189 <variablelist>
1190 <varlistentry>
1191 <term>label</term>
1192 <listitem><para>the text displayed in the <guilabel>Go-To</guilabel> dialog</para></listitem>
1193 </varlistentry>
1194 <varlistentry>
1195 <term>url-format</term>
1196 <listitem><para>the parametrized address of the query, in the spirit of C <function>printf</function> format, with a single "%s" field (replaced by the query string)</para></listitem>
1197 </varlistentry>
1198 <varlistentry>
1199 <term>lat-path</term>
1200 <listitem><para>XML path of the latitude (eg. <literal>/root/parent/elem</literal>)</para></listitem>
1201 </varlistentry>
1202 <varlistentry>
1203 <term>lat-attr (optional)</term>
1204 <listitem><para>name of the attribute (of previous element) containing the latitude</para></listitem>
1205 </varlistentry>
1206 <varlistentry>
1207 <term>lon-path</term>
1208 <listitem><para>XML path of the longitude (eg. <literal>/root/parent/elem</literal>)</para></listitem>
1209 </varlistentry>
1210 <varlistentry>
1211 <term>lon-attr (optional)</term>
1212 <listitem><para>name of the attribute (of previous element) containing the longiude</para></listitem>
1213 </varlistentry>
1214 </variablelist>
1215 </para>
1216 <para>As a facility (or readability) it is possible to set both path and attribute name in a single property, like an XPath expression. To do so, simply set both info in lat-path (or lon-path) in the following format: <literal>/root/parent/elem@attribute</literal>.</para>
4502fc82 1217 </section>
ba322d06 1218
4502fc82 1219 <section>
7233fcb6 1220 <title>Webtools</title>
ba322d06
GB
1221 <para>It is possible to add new external tools. The file is <filename>~/.viking/external_tools.xml</filename>.</para>
1222 <para>An example of the file in the distribution <filename>doc/examples/external_tools.xml</filename>.</para>
1223 <para>Currently, there is a single object class available: VikWebtoolCenter. Such feature allows to declare any Webtool using a logic based on center coordinates and zoom level value.</para>
1224 <para>The related properties are:
1225 <variablelist>
1226 <varlistentry>
1227 <term>id</term>
1228 <listitem><para>this is an integer and should be unique as it used to identify the tool</para></listitem>
1229 </varlistentry>
1230 <varlistentry>
1231 <term>label</term>
1232 <listitem><para>the text displayed in the menu entry</para></listitem>
1233 </varlistentry>
1234 <varlistentry>
1235 <term>url</term>
1236 <listitem><para>the parametrized address of the tile, in the spirit of C printf format, with 3 "%d" fields for X, Y and Z (zoom level) (eg. "http://hostname/%d/%d/%d.png")</para></listitem>
1237 </varlistentry>
1238 </variablelist>
1239 </para>
4502fc82 1240 </section>
ba322d06
GB
1241
1242</section>
1243
7233fcb6
RN
1244<section><title>What to Do if &appname; Does Not Seem to Work</title>
1245<para>
1246In order to get some information about what &appname; is doing, start it in verbose debug mode via the command line:
1247<programlisting>viking -dV</programlisting>
1248</para>
1249<para>
1250For instance you can check the correct URLs &appname; is using in requesting remote data for DEMs or map tiles in the verbose debug output.
1251E.g. Something like this for DEMs:
1252<screen>
1253** (viking:28778): DEBUG: curl_download_uri: uri=http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/N48E008.hgt.zip
1254* About to connect() to dds.cr.usgs.gov port 80 (#0)
1255* Trying 152.61.128.95... * connected
1256* Connected to dds.cr.usgs.gov (152.61.128.95) port 80 (#0)
1257 GET /srtm/version2_1/SRTM3/Eurasia/N48E008.hgt.zip HTTP/1.1
1258User-Agent: viking/0.9.8 libcurl/7.18.2 GnuTLS/2.4.2 zlib/1.2.3.3 libidn/1.8
1259Host: dds.cr.usgs.gov
1260Accept: */*
1261 HTTP/1.1 200 OK
1262 Date: Sun, 26 Jul 2009 18:13:38 GMT
1263 Server: Apache
1264 Last-Modified: Tue, 21 Jul 2009 19:57:35 GMT
1265 ETag: eac3f8-1828f5-46f3caa76070a
1266 Accept-Ranges: bytes
1267 Content-Length: 1583349
1268 Content-Type: application/zip
1269
1270* Connection #0 to host dds.cr.usgs.gov left intact
1271* Closing connection #0
1272** (viking:28778): DEBUG: dem_layer_add_file: /home/username/.viking-maps/srtm3-Eurasia/N48E008.hgt.zip
1273</screen>
1274Or for OSM Mapnik tile server:
1275<screen>
1276* About to connect() to tile.openstreetmap.org port 80 (#0)
1277* Trying 193.63.75.28... * connected
1278* Connected to tile.openstreetmap.org (193.63.75.28) port 80 (#0)
1279 GET /13/4065/2748.png HTTP/1.1
1280User-Agent: viking/0.9.96 libcurl/7.20.1 GnuTLS/2.8.6 zlib/1.2.3.4 libidn/1.18
1281Host: tile.openstreetmap.org
1282Accept: */*
1283
1284* HTTP 1.0, assume close after body
1285 HTTP/1.0 200 OK
1286 Date: Thu, 14 Oct 2010 22:18:42 GMT
1287 Server: Apache/2.2.8 (Ubuntu)
1288 ETag: "b66ff9d46474bab68262a3483428a232"
1289** (viking:16704): DEBUG: curl_get_etag_func: ETAG found: "b66ff9d46474bab68262a3483428a232"
1290 Content-Length: 17194
1291 Cache-Control: max-age=94805
1292 Expires: Sat, 16 Oct 2010 00:38:47 GMT
1293 Content-Type: image/png
1294 Age: 5153
1295 X-Cache: HIT from konqi.openstreetmap.org
1296 X-Cache-Lookup: HIT from konqi.openstreetmap.org:3128
1297 Via: 1.1 konqi.openstreetmap.org:3128 (squid/2.7.STABLE7)
1298 Connection: close
1299
1300* Closing connection #0
1301* About to connect() to a.andy.sandbox.cloudmade.com port 80 (#0)
1302* Trying 178.63.75.195... ** (viking:16704): DEBUG: curl_download_uri: uri=http://tile.openstreetmap.org/13/4065/2749.png
1303* About to connect() to tile.openstreetmap.org port 80 (#0)
1304* Trying 193.63.75.28... * connected
1305* Connected to a.andy.sandbox.cloudmade.com (178.63.75.195) port 80 (#0)
1306 GET /tiles/cycle/13/4065/2747.png HTTP/1.1
1307User-Agent: viking/0.9.96 libcurl/7.20.1 GnuTLS/2.8.6 zlib/1.2.3.4 libidn/1.18
1308Host: a.andy.sandbox.cloudmade.com
1309Accept: */*
1310
1311* connected
1312* Connected to tile.openstreetmap.org (193.63.75.28) port 80 (#0)
1313 GET /13/4065/2749.png HTTP/1.1
1314User-Agent: viking/0.9.96 libcurl/7.20.1 GnuTLS/2.8.6 zlib/1.2.3.4 libidn/1.18
1315Host: tile.openstreetmap.org
1316Accept: */*
1317
1318* HTTP 1.0, assume close after body
1319 HTTP/1.0 200 OK
1320 Date: Thu, 14 Oct 2010 23:44:35 GMT
1321 Server: Apache/2.2.8 (Ubuntu)
1322 ETag: "8e520ad47ce9c1b63430554886eb5fab"
1323** (viking:16704): DEBUG: curl_get_etag_func: ETAG found: "8e520ad47ce9c1b63430554886eb5fab"
1324 Content-Length: 18094
1325 Cache-Control: max-age=87742
1326 Expires: Sat, 16 Oct 2010 00:06:57 GMT
1327 Content-Type: image/png
1328 X-Cache: MISS from konqi.openstreetmap.org
1329 X-Cache-Lookup: MISS from konqi.openstreetmap.org:3128
1330 Via: 1.1 konqi.openstreetmap.org:3128 (squid/2.7.STABLE7)
1331 Connection: close
1332</screen>
1333</para>
1334</section>
1335
6928e16b 1336</section>
f8b8a0b5
GB
1337
1338</article>