Details Ticket 3153


Comment | Reply | Take | Open


Serial Number 3153
Subject v.in.garmin waypoint import
Area grass6
Queue grass
Requestors peter.loewe@gmx.de
Owner none
Status resolved
Last User Contact Sat May 21 10:31:48 2005 (3 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sat Jul 29 02:21:10 2006 (2 yr ago)
Created Mon Apr 11 11:49:32 2005 (3 yr ago)

Transaction History Ticket 3153


Mon, Apr 11 2005 11:49:32    Request created by guest  
Subject: v.in.garmin waypoint import

Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 6.0 release

The waypoint-import works fine for LL-locations. 
If a UTM-location is used, there's a problem about the database: 
 
v.in.garmin -v -w out=tafelnX port=/dev/ttyS0 
---------snip---------------------------------- 
Uploading Waypoints 
Coordinate format: DDD 
Attempting waypoint projection transform with cs2cs 
Importing Waypoints... 
Maximum input row length: 0 
Maximum number of columns: 0 
Minimum number of columns: -1 
ERROR: x column number > minimum last column number 
 
<tafelnX> columns: 
DBMI-DBF driver error: 
Table 'tafelnX' doesn't exist 
 
 
Done. 
----------------------------------------------- 
 
Peter 
Tue, Apr 12 2005 11:01:15    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Tue, 12 Apr 2005 21:00:49 +1200
From Hamish <hamish_nospam@yahoo.com>
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3153] (grass) v.in.garmin waypoint import
Message-Id <20050412210049.3c8c5c49.hamish_nospam@yahoo.com>
In-Reply-To <20050411094932.902321005A8@lists.intevation.de>
References <20050411094932.902321005A8@lists.intevation.de>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3153
> ---------------------------------------------------------------------
> 
> Subject: v.in.garmin waypoint import
> 
> Platform: GNU/Linux/i386
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: 6.0 release
> 
> The waypoint-import works fine for LL-locations. 
> If a UTM-location is used, there's a problem about the database: 
>  
> v.in.garmin -v -w out=tafelnX port=/dev/ttyS0 
> ---------snip---------------------------------- 
> Uploading Waypoints 
> Coordinate format: DDD 
> Attempting waypoint projection transform with cs2cs 
> Importing Waypoints... 
> Maximum input row length: 0 
> Maximum number of columns: 0 
> Minimum number of columns: -1 
> ERROR: x column number > minimum last column number 
>  
> <tafelnX> columns: 
> DBMI-DBF driver error: 
> Table 'tafelnX' doesn't exist 
>  
>  
> Done. 

can you try without setting the output= option? then it will send
data to stdout and you can see why v.in.ascii is unhappy.


> Maximum input row length: 0 

doesn't look like any data is getting there.


You might try commenting out the "rm" line at the end of the file and
then looking at the bits left over in $MAPSET/.tmp/$HOST/ to see how
far the data makes it.

note: known bug (unreleated), db link must be set with db.connect
before using the module; if DBF, then a $MAPSET/dbf/ dir must exist
too? [haven't tested in a while]



Hamish


Tue, Apr 12 2005 13:50:22    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Date Tue, 12 Apr 2005 13:50:18 +0200
From Markus Neteler <neteler@itc.it>
To Hamish <hamish_nospam@yahoo.com>
Cc Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3153] (grass) v.in.garmin waypoint import
Message-ID <20050412115018.GG18833@thuille.itc.it>
Mail-Followup-To Hamish <hamish_nospam@yahoo.com>, Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
References <20050411094932.902321005A8@lists.intevation.de> <20050412210049.3c8c5c49.hamish_nospam@yahoo.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <20050412210049.3c8c5c49.hamish_nospam@yahoo.com>
User-Agent Mutt/1.4.1i
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
On Tue, Apr 12, 2005 at 09:00:49PM +1200, Hamish wrote:
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=3153
> > ---------------------------------------------------------------------
...
> note: known bug (unreleated), db link must be set with db.connect
> before using the module; if DBF, then a $MAPSET/dbf/ dir must exist
> too? [haven't tested in a while]

I tested yesterday: yes, the $MAPSET/dbf/ dir must be created manually.
Let me propose to automate that for dbf... but no idea where.

Markus


Tue, Apr 12 2005 14:28:34    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Wed, 13 Apr 2005 00:28:16 +1200
From Hamish <hamish_nospam@yahoo.com>
To Markus Neteler <neteler@itc.it>
Cc grass-bugs@intevation.de, grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3153] (grass) v.in.garmin waypoint import
Message-Id <20050413002816.44ef7181.hamish_nospam@yahoo.com>
In-Reply-To <20050412115018.GG18833@thuille.itc.it>
References <20050411094932.902321005A8@lists.intevation.de> <20050412210049.3c8c5c49.hamish_nospam@yahoo.com> <20050412115018.GG18833@thuille.itc.it>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> > > this bug's URL: http://intevation.de/rt/webrt?serial_num=3153
> > > -----------------------------------------------------------------
> ...
> > note: known bug (unreleated), db link must be set with db.connect
> > before using the module; if DBF, then a $MAPSET/dbf/ dir must exist
> > too? [haven't tested in a while]
> 
> I tested yesterday: yes, the $MAPSET/dbf/ dir must be created
> manually. Let me propose to automate that for dbf... but no idea
> where.

Waypoint mode (or with -p flag) should create/link as needed with
 v.in.ascii format=point
as needed (I think..?).


But when the script makes track or route lines with:
 v.in.ascii format=standard
it does not create a table; the script creates one by hand with 

echo "CREATE TABLE ..." | db.execute

  [this step needs db to be set]

then populate the table it with

echo "INSERT INTO ..." | db.execute

then links with v.db.connect.


So it is hard to see what could be automated to create & link dbf/.

Maybe a test for $MAPSET/dbf and 'db.connect -p' before CREATE TABLE
in the v.in.garmin script is correct after all and no automation?



Hamish


Sat, May 21 2005 10:31:48    Mail sent by hbowman  
dbf/ and db.connect tests for v.in.garmin are now in CVS.


Hamish
Sat, Jul 29 2006 02:21:10    Status changed to resolved by hbowman  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request