]>
git.street.me.uk Git - andy/viking.git/log
Rob Norris [Sat, 5 Apr 2014 18:32:26 +0000 (19:32 +0100)]
Enable exporting to GeoJSON file via the program togeojson.
GPSBabel doesn't seem to support GeoJSON so have to use a specific program.
togeojson is from https://github.com/mapbox/togeojson
Rob Norris [Mon, 7 Apr 2014 21:58:43 +0000 (22:58 +0100)]
Use a common way to create temporary GPX files.
Rob Norris [Mon, 7 Apr 2014 21:48:18 +0000 (22:48 +0100)]
[QA] Limit scope of includes of vikutils header.
Rob Norris [Mon, 7 Apr 2014 21:42:32 +0000 (22:42 +0100)]
Geoname services now require an username account to access free services.
Also switch to the api URL as the ws one is depreciated.
Rob Norris [Mon, 7 Apr 2014 21:26:37 +0000 (22:26 +0100)]
[DOC] Update Help for current built in Maps list.
Rob Norris [Mon, 7 Apr 2014 21:21:44 +0000 (22:21 +0100)]
Rationalise acquire mode to have more obvious behaviour.
Rob Norris [Sun, 6 Apr 2014 09:27:59 +0000 (10:27 +0100)]
Convert some console warnings to get reported to the GUI in the statusbar.
Rob Norris [Sat, 5 Apr 2014 09:48:31 +0000 (10:48 +0100)]
[QA] Correct and improve enumeration usage for export file types.
Rob Norris [Mon, 7 Apr 2014 22:07:26 +0000 (23:07 +0100)]
Ensure tools directory is really included in the build output.
Rob Norris [Thu, 3 Apr 2014 23:00:31 +0000 (00:00 +0100)]
Add the miscellaneous 'tools' scripts into the build output.
Rob Norris [Thu, 3 Apr 2014 22:05:46 +0000 (23:05 +0100)]
Fix googledirections script.
Rob Norris [Thu, 3 Apr 2014 22:05:14 +0000 (23:05 +0100)]
Fix slightly incorrect DEM point drawing on the track property display after recent code changes.
Rob Norris [Thu, 27 Mar 2014 01:48:28 +0000 (01:48 +0000)]
Show distance axis grids on distance graphs.
Rob Norris [Thu, 27 Mar 2014 01:44:35 +0000 (01:44 +0000)]
SF Features#91: Part 2. Show time axis grids on time graphs.
Similar to the y axis labelling, try to find most sensible time chunks for the divisions.
Offset all drawing in the Y axis by MARGIN_Y to create room for the x axis labels.
Rob Norris [Wed, 26 Mar 2014 21:01:30 +0000 (21:01 +0000)]
Create and use a function to return the duration of a track.
Rob Norris [Wed, 26 Mar 2014 20:46:10 +0000 (20:46 +0000)]
[QA] Refactoring track properties window.
Rename: MARGIN -> MARGIN_X, draw_grid -> draw_grid_y
Make resetting of the graph images a common function: clear_images().
Rob Norris [Sat, 22 Mar 2014 14:27:28 +0000 (14:27 +0000)]
SF Features#91: Part 1. Display Clock Date/Time of the blob on the time graphs.
Helpful to work out the real time of where one was.
Rob Norris [Wed, 26 Mar 2014 20:01:11 +0000 (20:01 +0000)]
Remove unnecessary subdomain in some OSM tileserver hostnames.
Rob Norris [Wed, 26 Mar 2014 19:59:44 +0000 (19:59 +0000)]
Refix Merging tracks by time.
Accidentally broke it when trying to implement internal track ids.
(SHA:
fc92c97715697980e8fde44b9dc8c02e29b1f7a0 )
Somehow it previously did something, but it clearly wasn't actually
using *both* track times in deciding what to merge - d'oh!
It would also crash if one of the tracks has no trackpoints.
I think this flaw was in the original version.
This is now fixed as well.
Rob Norris [Sat, 22 Mar 2014 14:09:19 +0000 (14:09 +0000)]
Remove no longer available map services.
Rob Norris [Sat, 22 Mar 2014 14:08:30 +0000 (14:08 +0000)]
Remove default usage of Terraserver maps as they are no longer available.
For now leave the code in place since there are extra functions,
which may be of reference use in the future.
Rob Norris [Sat, 22 Mar 2014 13:49:36 +0000 (13:49 +0000)]
Completely remove SPOTMaps as this service is no longer available.
If it was available then it could work by simple maps.xml config,
rather than needing any code.
Rob Norris [Sat, 22 Mar 2014 12:31:52 +0000 (12:31 +0000)]
Optimize tooltip message generation, remove unnecessary track iterations.
Limit vik_track_get_tp_last() usage, since it uses g_list_last(),
which in turn iterates through the list to find the last trackpoint.
Thus cache the last trackpoint before multiple usage in tooltip generation.
Hopefully this will make it more likely these tooltips will get shown in Windows.
Rob Norris [Sat, 22 Mar 2014 12:10:12 +0000 (12:10 +0000)]
Allow clearing and copying of the information message in the statusbar.
Rob Norris [Sat, 22 Mar 2014 12:08:41 +0000 (12:08 +0000)]
Report download failures in the statusbar.
Tile and DEM download failures are now shown in the GUI,
rather than just messages on the console.
Use enumerated failure states.
Rob Norris [Sat, 22 Mar 2014 10:51:29 +0000 (10:51 +0000)]
Fix crashing on double clicks - properly initialize variable.
Fixes previous commit on this file to support GLIB 2.24
(SHA1:
5a8048bb6a980b0b969cb8864bdcce16607f9581 )
Rob Norris [Thu, 20 Mar 2014 21:22:53 +0000 (21:22 +0000)]
Refactor time from start track property label update
Rob Norris [Sun, 16 Mar 2014 11:25:57 +0000 (11:25 +0000)]
Flow up error states from routing so the GUI can display the failing result.
Rob Norris [Sun, 16 Mar 2014 11:07:56 +0000 (11:07 +0000)]
Notes on how to use git2changelog.sh
Since I always forget the format of the parameters passed to git log
Rob Norris [Sat, 15 Mar 2014 01:34:37 +0000 (01:34 +0000)]
[WINDOWS] Ensure an icon is embedded in the executable.
This is particularly important for display of an icon only in the task bar on Win 7 onwards.
Rob Norris [Sat, 15 Mar 2014 00:50:54 +0000 (00:50 +0000)]
Yet more files to ignore from output of the build process.
Rob Norris [Sat, 15 Mar 2014 00:04:58 +0000 (00:04 +0000)]
[WINDOWS] More reliable rebuilds.
Rob Norris [Fri, 14 Mar 2014 23:48:32 +0000 (23:48 +0000)]
[WINDOWS] Fix opening URLs in Windows build only.
Rob Norris [Sun, 23 Feb 2014 20:09:29 +0000 (20:09 +0000)]
SF Bugs#105: Fix Display of Lines (Clipping) at High Zoom Levels.
Properly address clipping of x,y pixel values,
which can happen when points are far away from the viewport.
This typically happens when zoomed in very close e.g. <0.5 pixelfact,
but also when a point is *very* far away from other points in a normal track.
Rob Norris [Sun, 23 Feb 2014 15:13:47 +0000 (15:13 +0000)]
Fix building on Windows as Viking only supports GLIB 2.24 ATM.
Rob Norris [Mon, 10 Feb 2014 23:51:55 +0000 (23:51 +0000)]
Add a tooltip for Aggregate Layers to say how many layers they contain.
Rob Norris [Mon, 10 Feb 2014 23:42:11 +0000 (23:42 +0000)]
Remove built in OpenStreetBugs datasource as this service is being phased out.
Rob Norris [Mon, 27 Jan 2014 20:03:55 +0000 (20:03 +0000)]
Add support for reading waypoint specific URL fields in GPX1.0 files.
Rob Norris [Wed, 29 Jan 2014 21:36:26 +0000 (21:36 +0000)]
Isolate Viking specific code in otherwise reusable code.
Rob Norris [Mon, 29 Jul 2013 17:37:33 +0000 (18:37 +0100)]
Shift code around to reduce dependencies required for DEM access.
Rob Norris [Wed, 29 Jan 2014 21:43:11 +0000 (21:43 +0000)]
Don't store regenerated INSTALL file in git.
Rob Norris [Thu, 23 Jan 2014 22:41:07 +0000 (22:41 +0000)]
Fix DEM layer URL reference output.
Rob Norris [Fri, 3 Jan 2014 20:21:54 +0000 (20:21 +0000)]
Remove mistaken need to change directory.
Rob Norris [Wed, 5 Feb 2014 22:36:11 +0000 (22:36 +0000)]
Merge branch 'ImprovedRouteFinder'
Rob Norris [Wed, 5 Feb 2014 01:18:26 +0000 (01:18 +0000)]
Improve routing function return types to simple TRUE / FALSE for success or failure indication.
Matthew Hague [Sun, 26 Jan 2014 15:01:36 +0000 (15:01 +0000)]
Updated documentation for the improved route finding tool
Matthew Hague [Tue, 4 Feb 2014 23:44:09 +0000 (23:44 +0000)]
Improve the Route Finder Tool
Changed route finder User Interface workings, it is now similar to the new route tool such that it shows the 'as the crow flys' direct line route,
but on creation of each new trackpoint the route from the last trackpoint is calculated using online services.
The user can switch between adding points with the new route tool or with the route finder tool, removed a lot of the vtk->route_finder fields and merged them with the new route fields instead, added code to ensure that double trackpoints get added at the joins between planned route segments.
Changed so that enforcing duplicates in viktrwlayer.c appending a track duplicates the end of the old track not the start of the new
Changed a bit of logic in route finder click to deal with a current empty route not created by the route finder
Like the current Create Track and Route tools, the Route Finder handles clicks when in pan mode and avoids extra dispay sync refreshing to avoid display flicker.
Update the UI during routing to show a busy cursor and info about the requests being made are shown in the statusbar (particularly in case the online requests are slow).
New icons haven been produced for route finder.
Signed-off-by: Rob Norris <rw_norris@hotmail.com>
Matthew Hague [Wed, 5 Feb 2014 00:05:13 +0000 (00:05 +0000)]
Extend Routing functions for UI reuse.
Made vik_routing_default_find return whether find was successful or not, and exposed vik_routing_default_engine via vikrouting.h to allow the route planner to display the name of the engine it's using
Matthew Hague [Tue, 4 Feb 2014 23:42:33 +0000 (23:42 +0000)]
Fix vik_track_cut_back_to_double_point().
The VikTrackpoint internal structure has changed so now must reference the exact data field.
Signed-off-by: Rob Norris <rw_norris@hotmail.com>
Rob Norris [Tue, 31 Dec 2013 10:31:40 +0000 (10:31 +0000)]
[QA] Remove unused parameter.
Rob Norris [Thu, 2 Jan 2014 23:37:14 +0000 (23:37 +0000)]
[QA] Rename variables to avoid shadowing global variables.
Rob Norris [Thu, 2 Jan 2014 23:35:00 +0000 (23:35 +0000)]
[QA] Add default cases for all switch statements.
Rob Norris [Mon, 30 Dec 2013 11:29:23 +0000 (11:29 +0000)]
[QA] Add explicit missing field initializers.
Rob Norris [Thu, 2 Jan 2014 23:11:08 +0000 (23:11 +0000)]
Extend Waypoint properties with some EXIF Geotag (read only) information.
Show if a waypoint's associated image has Geotag information
and if that position aligns with the waypoint position.
Rob Norris [Thu, 2 Jan 2014 23:06:53 +0000 (23:06 +0000)]
Add a function to return the position from a file with EXIF GPS information.
Split out functionality in an existing function into a new separate function for general use.
Rob Norris [Thu, 2 Jan 2014 20:06:45 +0000 (20:06 +0000)]
Use the last selected date when initializing the date search.
Often one wishes to search on a nearby date, especially if the previous search failed.
A button is offered to reset to the today's date.
Rob Norris [Wed, 1 Jan 2014 17:36:55 +0000 (17:36 +0000)]
Add a preference to control the number of recent files made available.
Rob Norris [Wed, 1 Jan 2014 17:22:26 +0000 (17:22 +0000)]
Enable JPG files as a primary supported type.
The bonus of this besides being able to load via the File->Open method,
is being able to add image waypoints by drag and drop of JPG files into the viewport.
Rob Norris [Wed, 1 Jan 2014 17:02:43 +0000 (17:02 +0000)]
[QA] Rename function
Rob Norris [Wed, 1 Jan 2014 16:01:32 +0000 (16:01 +0000)]
Fix autodownload tiles when scrolling. Was broken by a recent commit.
Fixes error introduced in SHA1:
beb9d63a39b01fad2c4126b695a9935443634eab
Rob Norris [Fri, 6 Dec 2013 23:58:50 +0000 (23:58 +0000)]
Enable zooming in/out in jumps of 3 levels by pressing shift key at the same time with the zoom tool.
Rob Norris [Fri, 6 Dec 2013 23:56:05 +0000 (23:56 +0000)]
Enable double clicking as an optional way to control zooming in pan mode.
Double click of the left (primary) mouse will zoom in.
Double click of the right (secondary) mouse will zoom out.
Make use of a timeout function to wait and see if a double click event occurs.
If it hasn't then the timeout will action the single click request
(to recenter the display to the clicked location).
Rob Norris [Fri, 6 Dec 2013 22:46:32 +0000 (22:46 +0000)]
Fix right click on a selected waypoint image starts to move it.
Rob Norris [Fri, 6 Dec 2013 22:45:29 +0000 (22:45 +0000)]
[DOC] Mention the new maps switch-xy property.
Rob Norris [Wed, 4 Dec 2013 21:22:40 +0000 (21:22 +0000)]
Add an example of using ArcGIS Server with use of the "switch-xy" property
Rob Norris [Tue, 3 Dec 2013 23:04:21 +0000 (23:04 +0000)]
Enable boolean map configuration 'switch-xy' property to swap X,Y parts of the URL.
Mainly to support ARCGIS Tile Server URL Layout which has the X,Y parts of the URL swapped around compared to the standard OSM Tile layout.
See: http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/tile.html
Rob Norris [Tue, 3 Dec 2013 22:57:28 +0000 (22:57 +0000)]
Remove repeating of built in types in data files.
Rob Norris [Tue, 3 Dec 2013 22:49:12 +0000 (22:49 +0000)]
External tools don't use ids
Rob Norris [Wed, 27 Nov 2013 20:03:18 +0000 (20:03 +0000)]
Shift Search by Date into a sub menu.
This is to allow for future search by text options.
Rob Norris [Mon, 25 Nov 2013 22:22:47 +0000 (22:22 +0000)]
Explicitly use subdir-objects in automake init to prevent large warning with automake-1.14
Option has been in automake for *ages*
Rob Norris [Mon, 25 Nov 2013 21:52:30 +0000 (21:52 +0000)]
Skip etag files in mbtile converter tool
Rob Norris [Sat, 26 Oct 2013 16:29:58 +0000 (17:29 +0100)]
Tidy up Makefile.am spacings
Guilhem Bonnefille [Thu, 5 Dec 2013 23:37:35 +0000 (23:37 +0000)]
Fix autogen.sh in order to install needed files
Signed-off-by: Rob Norris <rw_norris@hotmail.com>
Rob Norris [Mon, 25 Nov 2013 00:35:31 +0000 (00:35 +0000)]
[QA] Remove unused parameter
Rob Norris [Sun, 27 Oct 2013 11:55:26 +0000 (11:55 +0000)]
[QA] Tools are enabled per active layer
Rob Norris [Mon, 25 Nov 2013 21:15:10 +0000 (21:15 +0000)]
Fix excluding own self track when creating lists of other tracks.
Was broken by recent commit SHA1:
215ebe59a7ee81d3e47b55cab4c3c613bb0ac901
Make it more obvious that it is the track rather than the trackpoints.
Rob Norris [Wed, 20 Nov 2013 22:02:24 +0000 (22:02 +0000)]
RedNotebook 1.7.3+ integration to open the diary program on a specific date.
It opens the diary program on the day of the selected track or waypoint.
Requires RedNotebook 1.7.3+ to support opening on the specified date.
This is only made available if an appropriate version of RedNotebook is detected.
Rob Norris [Sat, 26 Oct 2013 16:47:55 +0000 (17:47 +0100)]
[QA] Remove redundant GTK checks for > 2.10, since we need 2.16.
Rob Norris [Sun, 17 Nov 2013 19:54:56 +0000 (19:54 +0000)]
Fix needing to calculate bounds of *both* tracks when a track is split via the marker.
Rob Norris [Sun, 17 Nov 2013 19:54:10 +0000 (19:54 +0000)]
Fix another compiler warning from the Export via GPSBabel work
Rob Norris [Tue, 5 Nov 2013 00:33:06 +0000 (00:33 +0000)]
Enable a history of requested positions.
Positions are stored on specific Go To requests (such entered position coordinates or to waypoint/track positions).
Currently panning and zooming do not modify the requested position.
Moving backwards and forwards through the list is supported sort of like a web browsers history of pages.
As the positions are not specifically named (just raw coordinates),
nothing advanced like showing the list of positions or jumping over multiple positions is offered.
Finer details such as the maximum size of the history list are controlled by Viking's internal preferences.
Rob Norris [Tue, 5 Nov 2013 00:24:33 +0000 (00:24 +0000)]
Really enable C99 mode.
Rob Norris [Sun, 3 Nov 2013 21:03:48 +0000 (21:03 +0000)]
Fix vik_track_get_length_to_trackpoint() so with the first track point it returns zero, not the entire track length!
Rob Norris [Sat, 16 Nov 2013 21:16:07 +0000 (21:16 +0000)]
Fix highlight draw to cope with cut layers.
Add efficiency improvement for a highlighted layer to not be drawn twice.
Rob Norris [Fri, 15 Nov 2013 20:03:16 +0000 (20:03 +0000)]
Fix another compiler warning from the Export via GPSBabel work
Rob Norris [Mon, 28 Oct 2013 21:04:02 +0000 (21:04 +0000)]
Ensure highlight for a single track or waypoint is always shown on top.
Special drawing for the highlighted item(s) ensures it is on top in case of overlapping items.
Introduce a delete layer signal, that is used by the VikWindow to help in preventing the attempt to draw a highlight of a deleted thing.
Rob Norris [Wed, 30 Oct 2013 21:47:55 +0000 (21:47 +0000)]
Add function to work out the visibility of an item considering all the items ancestor's visibilities.
Rob Norris [Tue, 5 Nov 2013 00:52:30 +0000 (00:52 +0000)]
Fix compiler warnings from Export via GPSBabel work
Rob Norris [Thu, 14 Nov 2013 23:19:41 +0000 (23:19 +0000)]
Support using multiple Viking files with relative paths.
Always calculate the canonical form for file references internally,
so that they are always accessible.
When saved the relative path will be calculated if necessary.
Thus on file opening there is no further need for changing the working directory.
Rob Norris [Thu, 14 Nov 2013 23:13:36 +0000 (23:13 +0000)]
[QA] Use actual type rather than a gpointer
Guilhem Bonnefille [Tue, 5 Nov 2013 21:58:38 +0000 (22:58 +0100)]
Fix previous fix
Guilhem Bonnefille [Tue, 5 Nov 2013 21:08:52 +0000 (22:08 +0100)]
Fix error handling at autogen.sh
Guilhem Bonnefille [Mon, 4 Nov 2013 22:31:23 +0000 (23:31 +0100)]
SF Feature#49: Export via GPSBabel
Allow to export data in all formats supported by gpsbabel.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Mon, 4 Nov 2013 22:31:23 +0000 (23:31 +0100)]
Extract a UI module for babel
Create a module to factorize some UI related code.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Mon, 4 Nov 2013 22:31:23 +0000 (23:31 +0100)]
Extract trw export module
VikTrwLayer module is really huge.
Export seems a good feature-candidate for externalisation.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Mon, 4 Nov 2013 21:40:12 +0000 (22:40 +0100)]
Refactoring: introduce a function for better encapsulation
Rob Norris [Fri, 1 Nov 2013 21:13:40 +0000 (21:13 +0000)]
More files to ignore from output of the build process.
More stuff generated by autopoint,autoreconf etc...
Guilhem Bonnefille [Fri, 1 Nov 2013 21:03:28 +0000 (21:03 +0000)]
Sometimes gnome-autogen.sh does not support the most recent automake versions.
At the same time, it seems that a more standard tool exists: autoreconf.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Signed-off-by: Rob Norris <rw_norris@hotmail.com>
Rob Norris [Wed, 30 Oct 2013 19:46:45 +0000 (19:46 +0000)]
Fix crashing when copying layers with null strings as parameters.
Luckily, previously layers would not have a null string value
- but this can now happen with the recent GPX Metadata parameters code.
Rob Norris [Wed, 30 Oct 2013 00:19:18 +0000 (00:19 +0000)]
Fix opening files on command line in different directories.
Restrict the changing of the working directory when handling the Viking file type,
since that is the only type (as far as I know) that supports relative file paths
(mostly for optional relative paths for Waypoint Images).
Restore the working directory to the previous value once the file has been used.