2 File ID: 0529a718-fafb-11dd-b55f-000475e441b9
4 Creating the "gps" database:
6 $ cd ~/bin/src/gpstools/postgres
9 Copy new things from new tracklogs into Postgres:
11 1: chdir to the place where the new files are.
12 1: Run "svn update" and delete all files already in the system.
15 2: cd ~/gps/div/postgres
17 2: \i update_things.sql
19 And then there’s the place names:
23 1: gpst -o pgwupd *.gpx | psql -a gps
26 1: gpst -o pgwupd wpdata.gpx | psql -a gps
32 $ addpoints -t waypoint -v *.gpx
34 gps=# SELECT loop_wayp_new();
36 To clean up the waypoints:
38 cd ~/bin/src/gpstools/postgres
42 To synchronise waypoints and POI:
44 Postgres is necessary. You need a database called "gps" and a table called
45 "tmpwayp", which is taken care of by ../postgres/create_table.sql . After that,
46 execute ../poisync and edit the .gpx files.
48 A useful macro to use inside vimdiff when wpdata.gpx is in the left window and
49 the receiving file is in the right, is:
51 :map <f1> ?<wpt <cr>V/<\/wpt><cr>y<C-w><C-w>GP?<type><cr>Y/<sym><cr>p<C-w><C-w>
53 (Press F1 while between <wpt></wpt>.)
55 vim: set ts=2 sts=2 sw=2 et :