[GRASS5] v.in.garmin

A problem with v.in.garmin has reappeared. With the latest cvs, I obtain the
following:

-- GRASS 6.0.cvs:~ > v.in.garmin 'output=riferimento_latignano'
port=/dev/ttyS0 -w
+ '[' output=riferimento_latignano '!=' @ARGS_PARSED@ ']'
+ exec
g.parser /usr/local/grass6.0.cvs-i686-pc-linux-gnu-15_01_2005/scripts/v.in.garmin
output=riferimento_latignano port=/dev/ttyS0 -w
+ '[' @ARGS_PARSED@ '!=' @ARGS_PARSED@ ']'
+ test /usr/local/grass6.0.cvs-i686-pc-linux-gnu-15_01_2005 = ''
++ g.gisenv
+ eval 'GISDBASE='\''/home/Documenti/datigrass'\'';'
'LOCATION_NAME='\''Toscana'\'';' 'MAPSET='\''MIPI'\'';'
'GRASS_GUI='\''tcltk'\'';'
++ GISDBASE=/home/Documenti/datigrass
++ LOCATION_NAME=Toscana
++ MAPSET=MIPI
++ GRASS_GUI=tcltk
+ : /usr/local/grass6.0.cvs-i686-pc-linux-gnu-15_01_2005 /home/Documenti/datigrass
Toscana MIPI
+ LOCATION=/home/Documenti/datigrass/Toscana/MIPI
++
basename /usr/local/grass6.0.cvs-i686-pc-linux-gnu-15_01_2005/scripts/v.in.garmin
+ PROG=v.in.garmin
++ which gpstrans
+ GPSTRANS=/usr/bin/gpstrans
+ '[' /usr/bin/gpstrans = '' ']'
++ which cs2cs
+ CS2CS=/usr/bin/cs2cs
+ '[' /usr/bin/cs2cs = '' ']'
++ which awk
+ AWK=/usr/bin/awk
+ '[' /usr/bin/awk = '' ']'
++ g.tempfile pid=10665
+ TMP=/home/Documenti/datigrass/Toscana/MIPI/.tmp/meles.ufficio.net/10665.0
+ trap 'rm -f ${TMP}*' 2 3 15
+ WPT=0
+ RTE=0
+ TRK=0
+ KEEP_WGS84=0
+ VERBOSE=0
+ '[' 0 -eq 1 ']'
+ '[' -n riferimento_latignano ']'
+ NAME=riferimento_latignano
+ '[' 0 -eq 1 ']'
++ g.findfile elem=vector file=riferimento_latignano
++ grep '^file'
++ cut -f2 -d=
+ '[' -n ']'
+ echo '<riferimento_latignano> already exists! Aborting.'
<riferimento_latignano> already exists! Aborting.
+ exit 1

Tried with a nmber of different file names, to no avail.
With the newly packaged grass (from DebianGIS repository), I obtain:

v.in.garmin output=latignano port=/dev/ttyS0 -w
GPStrans (ASCII) - Version 0.39
Copyright (c) 1995 by Carsten Tschach (tschach@zedat.fu-berlin.de)
Linux/KKJ mods by Janne Sinkkonen <janne@iki.fi> (1996)
Copyright (c) 2000 German Grid by Andreas Lange <andreas.lange@rhein-main.de>
Copyright (c) 1998,2000 Mayko-mXmap mods by Matthias Kattanek
<mattes@ugraf.com>
Copyright (c) 2001 Development by Joao Seabra-CT2GNL <seabra@ci.AAC.uc.pt>
Uploading Waypoints
Attempting waypoint projection transform with cs2cs
Importing Waypoints...
Sorry, <catcol> is not a valid parameter

Rather frustrating.
Thanks for help.
pc
--
Paolo Cavallini
cavallini@faunalia.it www.faunalia.it www.faunalia.com
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953

A problem with v.in.garmin has reappeared. With the latest cvs, I
obtain the following:

..

-- GRASS 6.0.cvs:~ > v.in.garmin 'output=riferimento_latignano'
port=/dev/ttyS0 -w
+ '[' output=riferimento_latignano '!=' @ARGS_PARSED@ ']'
+ exec
g.parser
/usr/local/grass6.0.cvs-i686-pc-linux-gnu-15_01_2005/scripts/v.in.gar
min output=riferimento_latignano port=/dev/ttyS0 -w
+ '[' @ARGS_PARSED@ '!=' @ARGS_PARSED@ ']'

... is that with the script starting with '#!/bin/sh -x' or something?

Anyway, does running this command come back as empty?

NAME=riferimento_latignano
g.findfile elem=vector file="$NAME" | grep ^file | cut -f2 -d=

..

<riferimento_latignano> already exists! Aborting.
+ exit 1

Tried with a nmber of different file names, to no avail.

I have now ripped out the "already exists" check in CVS.
Use --o if you need to overwrite.

With the newly packaged grass (from DebianGIS repository), I obtain:

v.in.garmin output=latignano port=/dev/ttyS0 -w
GPStrans (ASCII) - Version 0.39
Copyright (c) 1995 by Carsten Tschach (tschach@zedat.fu-berlin.de)
Linux/KKJ mods by Janne Sinkkonen <janne@iki.fi> (1996)
Copyright (c) 2000 German Grid by Andreas Lange
<andreas.lange@rhein-main.de> Copyright (c) 1998,2000 Mayko-mXmap mods
by Matthias Kattanek <mattes@ugraf.com>
Copyright (c) 2001 Development by Joao Seabra-CT2GNL
<seabra@ci.AAC.uc.pt> Uploading Waypoints
Attempting waypoint projection transform with cs2cs
Importing Waypoints...
Sorry, <catcol> is not a valid parameter

Rather frustrating.

6beta1 was shipped with a broken v.in.garmin. [needed (null) -> "" update]

should work now after updating from CVS?

Hamish