Details Ticket 5175


Comment | Reply | Take | Resolve


Serial Number 5175
Subject v.to.db: 'option=cat' not updating columns other than 'cat'
Area grass6
Queue grass
Requestors tutey@o2.pl
Owner none
Status open
Last User Contact Sun Oct 1 13:48:58 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sun Oct 1 13:48:58 2006 (2 yr ago)
Created Sat Sep 30 00:43:38 2006 (2 yr ago)

Transaction History Ticket 5175


Sat, Sep 30 2006 00:43:38    Request created by msieczka  
Subject: v.to.db: 'option=cat' not updating columns other than 'cat'

Even if I specify a valid integer output 'column' for 'option=cat':

    v.to.db -s map=huha2 type=point layer=2 option=cat column=gimme

v.to.db ignores it and updates the column "cat" instead:

    Updating database ...
    insert into huha2_2 ( cat ) values  ( 1 )
    insert into huha2_2 ( cat ) values  ( 2 )
    insert into huha2_2 ( cat ) values  ( 3 )

... and so forth.

The column "gimme" is there:

    $ v.info -c huha2
    Displaying column types/names for database connection of layer 1:
    INTEGER|cat
    INTEGER|gimme

Why does v.to.db ignore it? I thought I could use any integer column for
storing categories...

Maciek
Sun, Oct 1 2006 08:34:45    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Sun, 1 Oct 2006 19:34:37 +1300
From Hamish <hamish_nospam@yahoo.com>
To Request Tracker <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #5175] (grass) v.to.db: 'option=cat' not updating columns other than 'cat'
Message-Id <20061001193437.1d7a2488.hamish_nospam@yahoo.com>
In-Reply-To <20060929224338.979431005CF@lists.intevation.de>
References <20060929224338.979431005CF@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-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-2.3 tagged_above=-999 required=3 tests=[BAYES_00=-5, FORGED_YAHOO_RCVD=2.7]
X-Spam-Level
Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=5175
> ---------------------------------------------------------------------
> 
> Subject: v.to.db: 'option=cat' not updating columns other than 'cat'
> 
> Even if I specify a valid integer output 'column' for 'option=cat':
> 
>     v.to.db -s map=huha2 type=point layer=2 option=cat column=gimme
> 
> v.to.db ignores it and updates the column "cat" instead:
> 
>     Updating database ...
>     insert into huha2_2 ( cat ) values  ( 1 )
>     insert into huha2_2 ( cat ) values  ( 2 )
>     insert into huha2_2 ( cat ) values  ( 3 )
> 
> ... and so forth.
> 
> The column "gimme" is there:
> 
>     $ v.info -c huha2
>     Displaying column types/names for database connection of layer 1:
>     INTEGER|cat
>     INTEGER|gimme
> 
> Why does v.to.db ignore it? I thought I could use any integer column
> for storing categories...

what if 'v.reclass column=gimmie' is done first. i.e. is it hard-coded
to "cat" or is it hard-coded to the category key?


Hamish


Sun, Oct 1 2006 13:48:58    Mail sent by msieczka  
hamish_nospam@yahoo.com wrote (Sun, Oct 1 2006 08:34:45):

> is it hard-coded to "cat" or is it hard-coded to the category key?

Hamish,

Thanks for the hint. It is hard-coded to the category key it shows.

I have connected a table using column 'gimme' for key:

   $ v.db.connect -p huha_rcl
   Vector map <huha_rcl> is connected by:
   layer <1> table <huha_rcl> in database
   </home/grassdata/spearfish60/sieczka/dbf/> through driver <dbf> with key 
<gimme>

and now v.to.db wants to populate the 'gimme' no matter what column I specify:
$v.to.db -s map=huha_rcl type=point option=cat column=cat

    Updating database ...
    insert into huha_rcl ( gimme ) values  ( 1 )
    insert into huha_rcl ( gimme ) values  ( 2 )
    insert into huha_rcl ( gimme ) values  ( 3 )
    ...

Maciek
Comment | Reply | Take | Resolve

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