[GRASS-user] v.to.db

Markus Neteler neteler at osgeo.org
Sun Jan 25 09:56:11 EST 2009


On Sun, Jan 25, 2009 at 3:07 PM, Paolo Craveri <pcraveri at gmail.com> wrote:
> Hi
>
> 2009/1/20 Martin Landa <landa.martin at gmail.com>:
>> Hi,
>
>>
>> should be fixed in r35515.
>>
>> Martin
>>
>> --
>> Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
>>
>
> I have just updated   grass6.4 from svn but error remains.

Did you also recompile?

here it works now...:

... commands as in initial email.
...
db.droptable mypoints2 -f
Forcing ...
# # # create a table
 echo "CREATE TABLE mypoints2_2 (cat integer, x double precision, y
double precision)" | db.execute
 # # # connect table to layer 2

v.db.connect map=mypoints2 layer=2 key=cat table=mypoints2_2
The table <mypoints2_2> is now part of vector map <mypoints2> and may be
deleted or overwritten by GRASS modules
Select privileges were granted on the table

v.to.db mypoints2 layer=2 opt=cat  col=cat
Reading features...
 100%
Updating database...
 100%
25 categories read from vector map (layer 2)
25 categories read from vector map don't exist in selection from table
25 records updated/inserted (layer 2)

v.to.db mypoints2 layer=2 opt=coor col=x,y
Reading features...
 100%
Updating database...
 100%
25 categories read from vector map (layer 2)
25 records selected from table (layer 1)
25 categories read from vector map exist in selection from table
25 records updated/inserted (layer 2)

No more error!

Markus


More information about the grass-user mailing list