[GRASS-user] v.in.gpsbabel problem

Mike Dvorak mike at mikemath.net
Sun Jul 9 19:27:39 EDT 2006


In answer to Hamish's question, I'm using GPSBabel Version 1.3.0.

Thanks!
-Mike

Mike Dvorak wrote:
> Also, I'm confused because on lines 241 and 246 of v.in.gpsbabel, there
> are two gpsbabel commands that are not even valid according to the GPS
> babel documentation:
> 
> % gpsbabel -r -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE -o \
> gpx,style="$STYLE" -F "$TMP".gpx
> 
> The "-o gpx" command cannot take the "style" option.  I've tried
> removing this extraneous style argument but the program still seems to
> crash unfortunately.
> 
> Cheers,
> -Mike
> 
> Mike Dvorak wrote:
>> I should also mention that v.in.gpsbabel works just fine for waypoints,
>> but not tracks.  This is the command that I was trying to run:
>>
>> % v.in.gpsbabel input=/dev/cu.KeySerial1 output=prospect_park_r9
>> format=garmin -t
>>
>> Cheers,
>> -Mike
>>
>> Mike Dvorak wrote:
>>> Dear GRASS users,
>>>
>>> I'm having a problem with v.in.gpsbabel for GRASS-6.1 (cvs, 24 Jun 2006)
>>> on OS X.  The "gpsbabel" command fails with a syntax error initially,
>>> which leads to all kinds of other errors in the script.  I tried copying
>>> over the latest script version from CVS and it v.in.gpsbabel script
>>> fails in the same way.  Here's the first part of the failing output:
>>>
>>> Uploading Tracks from GPS
>>> 'style=/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/etc/grass_write_ascii.style'
>>> is an unknown option to gpx.
>>> /Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/scripts/v.in.gpsbabel.r3:
>>> line 459: ((: OFFSET=117-: syntax error: operand expected (error token
>>> is "-")
>>> tail: option requires an argument -- n
>>> usage: tail [-F | -f | -r] [-b # | -c # | -n #] [file ...]
>>> /Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/scripts/v.in.gpsbabel.r3:
>>> line 459: ((: OFFSET=132-: syntax error: operand expected (error token
>>> is "-")
>>> tail: option requires an argument -- n
>>> usage: tail [-F | -f | -r] [-b # | -c # | -n #] [file ...]
>>> Attempting waypoint projection transform with cs2cs
>>> Importing with v.in.ascii
>>> Building topology ...
>>> Registering lines:
>>> 3 primitives registered
>>> Building areas:
>>> v.in.gpsbabel.r3: line vector "prospect_park_r6 at PERMANENT" successfully
>>> created
>>> Creating new table..
>>> Populating table with attributes..
>>> DBMI-DBF driver error:
>>> SQL parser error in statement:
>>> INSERT INTO prospect_park_r6 VALUES (1, ' ',  ,  , ' ',  , )
>>>
>>>
>>> I should also mention that I had to replace the "stat -c%s..." command
>>> with "stat -fz..." to get it working on OS X too.  Can anyone help me
>>> with this?  I'm trying to get a demo working for an open source GIS talk
>>> I'm giving in a couple of weeks at the HOPE6 conference.  I wish that I
>>> had a Linux box available to me, but unfortunately that's not the case.
>>>
>>> Cheers,
>>> -Mike
>>>
>>>
>>> _______________________________________________
>>> grassuser mailing list
>>> grassuser at grass.itc.it
>>> http://grass.itc.it/mailman/listinfo/grassuser
>> _______________________________________________
>> grassuser mailing list
>> grassuser at grass.itc.it
>> http://grass.itc.it/mailman/listinfo/grassuser
> 
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser




More information about the grass-user mailing list