Changes since 0.0.5
- Configure now checks for valac and valac version.
- Improved moving average.
- Support selecting a range in the graph.
- Showing of range in MAP.
- Track statistics update when selecting a subset of the track.
- Translation support + 2 translations.
- GIO File access, so now opening a remove file is supported.
- xmlTextReader parsing of gpx file.
- Support for routes (treated as tracks)
- Added pins.
Download:
You can download the source tar.gz: here
Screenshot:

14 Comments
Pingback: qball's status on Sunday, 12-Jul-09 11:26:17 UTC - Identi.ca
hello,
I’m trying to compile from bzr clone, but get’s errors (it’s longer, but I think is the core of error):
make[3]: Entering directory `/data/home/radek/src/gpx-viewer/src’
gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libchamplain-gtk-0.3 -I/usr/include/libchamplain-0.3 -I/usr/include/clutter-0.8 -I/usr/include/clutter-0.8/clutter-gtk -I/usr/include/libxml2 -DDATA_DIR=”\”/usr/local/gpxviewer/share/gpxviewer\”" -std=c99 -g -O2 -MT gpx-viewer.o -MD -MP -MF .deps/gpx-viewer.Tpo -c -o gpx-viewer.o gpx-viewer.c
gpx-viewer.c:50: error: expected specifier-qualifier-list before ‘ChamplainPolygon’
gpx-viewer.c: In function ‘interface_map_plot_route’:
gpx-viewer.c:216: error: ‘struct Route’ has no member named ‘polygon’
gpx-viewer.c:216: warning: implicit declaration of function ‘champlain_polygon_new’
gpx-viewer.c:219: warning: implicit declaration of function ‘champlain_polygon_append_point’
gpx-viewer.c:219: error: ‘struct Route’ has no member named ‘polygon’
I’m running ubuntu 9.04 with
PS: please in README change camplain to champlain, ita took me a while
libchamplain-gtk-0.3-dev 0.3.0-1ubuntu1~ppa1
valac 0.7.2-1ubuntu1~jaunty1
from what ppa did you get them?
Can you try this ppa: https://launchpad.net/~telepathy/+archive/ppa it worked for me. I might had minimum version wrong.
it was it (upgade from libchmaplain 0.3.0->0.3.1), thanks. Anyway it does not handle my gpx files, could you test this one (created in garmin GPSMAP60 and then edited in viking):
http://www.nahraj.cz/content/dw/40fae0f0-3479-498a-8f71-77afe6199a3f
it’s a czech public files repository…
I had it originally here (not posible to download w/o registration)
http://www.mtbguru.com/trip/edit/10394-trasaostra
It worked fine for me:
http://images.sarine.nl/screenshot-user-track-gpxviewer.png
What doesn’t work?
look like this (only one point drawed, position is wrong – 100km south)
http://www.nahraj.cz/content/dw/d8fae9b6-6c05-483d-9551-3bc0326f7068
is some more debug possible?
radek@jil70001:/usr/local/gpx-viewer/bin$ ./gpxviewer ~/Download/10394-trasaostra.gpx
(./gpxviewer:24425): GPX PARSER-DEBUG: gpx-parser.vala:382: Close_file()
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:247: Updating surface
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:277: Max speed: 0,000000, elapsed_time: 11764,000000
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:298: Draw grid lines
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:315: Set speed tick: 0,0
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:315: Set speed tick: 0,0
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:315: Set speed tick: 0,0
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:315: Set speed tick: 0,0
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:315: Set speed tick: 0,0
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:315: Set speed tick: 0,0
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:315: Set speed tick: 0,0
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:315: Set speed tick: 0,0
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:331: Draw Axis
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:362: Draw graph
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 00:00
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 00:14
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 00:28
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 00:42
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 00:56
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 01:10
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 01:24
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 01:38
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 01:52
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 02:06
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 02:20
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 02:34
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 02:48
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:383: Set time tick: 03:02
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:399: Draw average speed line @ 0,00 km/h
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:409: Draw moving average speed line @ 0,00 km/h
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:420: Set graph title: Speed (km/h) vs Time (HH:MM) (smooth window: 4)
(./gpxviewer:24425): GPX_PARSER-DEBUG: gpx-graph.vala:247: Updating surface
Very odd.
Can you give me the vala version used? and is it 32 or 64bit os?
I got it,
it start to work when I set eun it as
LANG=C gpxviewer file.gpx
normally i have
locale
LANG=cs_CZ.UTF-8
Ok, I will try to fix it.
Aah the problem is that vala uses strtod when converting the position to a double. strtod however is locale depenedent. And it seems in your locale the normal decimal point isn’t a . (or atleast strtod thinks so).
It should be fixed in the next vala release. (atleast juergbi prommised me)
For now I added a quick and dirty hack to bzr that should fix it.
Let me know if you need help with that.
Hello it work now – you’re right we use comma as decimal separator..world is not easy
. Anyway It works very nice now.