From 670cc1e1564da0132a8c5dfd235b666dd4a66f73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20A=2E=20Holm?= Date: Sat, 29 May 2010 09:41:04 +0200 Subject: [PATCH] poisync: Use unit.gpx instead of wpdata.gpx 97a705f2-6af5-11df-9e7c-90e6ba3022ac --- poisync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poisync b/poisync index a63185d..ff81a1c 100755 --- a/poisync +++ b/poisync @@ -7,7 +7,7 @@ # License: GNU General Public License version 3 or later. #======================================================================= -gpst -o pgwtab ~/gps/unit/wpdata.gpx ~/gps/poi/trans/*.gpx | \ +gpst -o pgwtab ~/gps/unit/unit.gpx ~/gps/poi/trans/*.gpx | \ psql gps -a -c "TRUNCATE tmpwayp; COPY tmpwayp (coor, name, ele, type, time, cmt, descr, src, sym) FROM STDIN;" psql gps -a -c "UPDATE tmpwayp SET coor = point(round(coor[0]::numeric, 6), round(coor[1]::numeric, 6));" psql gps -c "COPY (SELECT coor, name FROM tmpwayp WHERE type IS NULL ORDER BY coor[0] desc, coor[1]) TO STDOUT;" >/tmp/unit.tmp -- 2.11.4.GIT