Rob Norris [Fri, 20 Jan 2012 01:00:50 +0000 (01:00 +0000)]
Add function to return an average moving speed for a track.
This method doesn't use samples that differ over the specified time limit - effectively skipping that time chunk from the total time - hence removing the 'stationary' bits to give only the moving parts.
Rob Norris [Fri, 20 Jan 2012 00:27:28 +0000 (00:27 +0000)]
Add ability to open a TrackWaypoint layer with an external program (default JOSM).
This is ideal for editing around the track and waypoints with OSM, as it's very unlikely Viking will ever be an OSM editor - it's best left to other dedicated programs.
The layer is converted to a temporary GPX file, but it is not deleted as loading it with another program is not instantaneous.
For now it is up to the user to delete it / use system temp cleanup methods.
The program can be changed by the user and is stored in the preferences.
This *hasn't* been tested on Windows OSs. It's possible a full path to the program may be needed to invoke it on such systems.
Rob Norris [Fri, 6 Jan 2012 22:09:03 +0000 (22:09 +0000)]
Fix potential GdkPixbuf-CRITICAL warning in thumbnail creation.
This can be generated when trying to open non existant image files (e.g. if stored in a .vik file)
Error was introduced by commit 6d0927b1b61b1f2f9ec5d048d85d8a4cad24f649, which uses a variable without testing if it is valid.
Rob Norris [Thu, 22 Dec 2011 18:48:48 +0000 (18:48 +0000)]
Use map default: OSM MapQuest tileserver.
This is in response to requests from the OSM administrators to lessen the load placed on the OSM tile servers that are run entirely on a volunteer basis.
Rob Norris [Fri, 21 Oct 2011 15:04:03 +0000 (16:04 +0100)]
Add ability to geotag images interpolating times against tracks.
Geotag information is saved (when specified) as EXIF GPS information using the built in libjpeg component of libexif. (EXIF writing using libexif is more complicated than one would wish!)
The geotagging can be invoked 3 ways:
. Directly updating an image that is already on a waypoint
. For specified images on a TrackWaypoint layer (all tracks with the layer may be used interpolating a match)
. For specified images on a specified Track
Various options are given to the user to control the geotagging process:
. Whether to write EXIF
. Whether to create Waypoints from the images.
. Whether to Overwrite existing GPS information
. Timestamp issues:
- Whether to change file modification time
- Time offset between creator (normally the camera time) and actual GPS UTC time
- Cater for time zone setting of the creator (again normally the camera setting)
Much of this work has been inspired by GPSCorrelate. (http://freefoote.dview.net/linux_gpscorr.html)
Rob Norris [Wed, 5 Oct 2011 14:45:04 +0000 (15:45 +0100)]
EXIF read implementation for geotagged images (libexif).
A new dependency on libexif (which can be disabled via the
configure options) to perform processing of images to get geo
information.
Users can use the acquire method to import images and automatically
create waypoints for the image locations.
Rob Norris [Thu, 6 Oct 2011 18:09:36 +0000 (19:09 +0100)]
Add new process stage for acquire methods.
This is designed to handle the main event of conversion / whatever processing is to be done.
ATM only invoked for the new VIK_DATASOURCE_INTERNAL type.
Rob Norris [Thu, 24 Nov 2011 23:09:24 +0000 (23:09 +0000)]
Fix: Improve internal redrawing method.
Should now have no race conditions / lock outs to be more reliable when handling (e.g. downloading) multiple sources and redrawing the screen at any time by using the appropriate gtk idle drawing methods for all updates.
Rob Norris [Thu, 23 Jun 2011 23:17:00 +0000 (00:17 +0100)]
Enable internationalization and simpilify 'Global' preferences text into less specific 'General' term.
Also shorten name as preferences is already in the dialog title.
General is a better term, as all preferences are 'global' when considered from an end user point of view.
This enables further 'global' tabs to be named according to some logical grouping (even if is just 'Advanced').
Issue derives from commit: 6e4a49aa9ec3ca64334124a009d4774a7bb4bb8e back in early 2008, which replaced GtkFileSelection by GtkFileChooser, this changes the signal callback from using an array of strings (gchar**) to being a GSList type.
Rob Norris [Fri, 28 Oct 2011 21:30:25 +0000 (22:30 +0100)]
Fix too easy to accidently move a waypoint with an image with the select tool - must use shift key.
Previously subsequent clicks within the thumbnail image move the waypoint.
To prevent this the only way to drag move it is by holding the shift key at the same time.
Rob Norris [Mon, 29 Nov 2010 00:34:20 +0000 (00:34 +0000)]
Add control of GPS upload/download of components tracks and waypoints.
Controls added for both GPS Layer and acquire methods which alters the command used to run GPSbabel.
Thus the user can decide if they want to just get waypoints for example.
The defaults are set to do everything (just as previously without the individual controls).
Rob Norris [Tue, 25 Oct 2011 00:28:51 +0000 (01:28 +0100)]
Fix crashing on opening multiple files after a .vik file is opened.
Issue derives from commit: 6e4a49aa9ec3ca64334124a009d4774a7bb4bb8e back in early 2008, which replaced GtkFileSelection by GtkFileChooser, this changes the signal callback from using an array of strings (gchar**) to being a GSList type.
Rob Norris [Sun, 2 Oct 2011 11:04:51 +0000 (12:04 +0100)]
Solution for SF#2766266 - Give user feedback about OSM uploads (success/failure).
ATM report feedback in the statusbar, thus time is appended to text to enable differences between requests.
It would be better if failures resulted in a dialog for a more obvious didn't work issue, however that crashes Viking with an X multi-thread issue, so a statusbar update for now.
VikLayersPanel's actions fired from menu produce two redraw:
- one due to "update" signal
- another due to explicit redraw call in menu's callback functions
Rob Norris [Wed, 25 May 2011 18:04:16 +0000 (19:04 +0100)]
Continue geocaching.com support via third party tools.
After the geocaching.com website update* the gcget script no longer works.
*http://blog.geocaching.com/2011/05/preview-of-geocaching-com-may-4th-website-release/
It is simpler to use third party tools (which are public domain).
.geo-nearest
.geo-html2gpx
From http://geo.rkkda.com/
Rob Norris [Thu, 30 Dec 2010 18:26:25 +0000 (18:26 +0000)]
Show elevation gain/loss on track creation 'tooltip' (as per SF#2838561 request), when such data is available.
Enable updating track creation info into the statusbar.
Uses the current track elevation gain/loss data and then factors in the elevation gain/loss to the current position.
Show full distance + elevation in the statusbar, whereas the viewport just has the distance.
Rob Norris [Sat, 10 Sep 2011 10:05:47 +0000 (11:05 +0100)]
Automatically attempt to set elevation data from the DEM layer whilst a track is being created.
Add and use the ability to set DEM data (if available) for just the last track point.
This enables using the DEM data as a track is being created without having to reanalyse every track point.