[GRASS-user] v.patch and layers

Dear GRASSusers,
I am having a problem (with GRASS 6.0.2).
I have 2 vectors (map1 and map2)containing points. Each of them has a table
with attributes.
I created a new file (map3) by:

v.patch in=map1,map2 out=map3

And

v.db.connect map3 table=map1 layer=1 key=cat
v.db.connect map3 table=map2 layer=2 key=cat

The connections are OK as shown by:

v.db.connect -p map3

But when I enter v.digit to modify some attribute all the points are
assigned to layer 1. Layer 2 with the map2 attribute table is ignored. Is
there a way to access and modify attributes of all layers in a patched map?
I had the same problem with d.what.vect.

Many thanks in advance

Aldo Clerici

Dear Aldo,

in GRASS 6.1.0 v.patch was improved
http://grass.itc.it/announces/announce_grass610.html
-> *v.patch*: attribute transfer, if table structures are identical

Probably this solves the problem for you (i.e. that you won't
even have to use v.db.connect any more).

You can download various RPMs from the download page.

Best regards
Markus

Aldo Clerici wrote on 08/23/2006 11:30 AM:

Dear GRASSusers,
I am having a problem (with GRASS 6.0.2).
I have 2 vectors (map1 and map2)containing points. Each of them has a table
with attributes.
I created a new file (map3) by:

v.patch in=map1,map2 out=map3

And

v.db.connect map3 table=map1 layer=1 key=cat
v.db.connect map3 table=map2 layer=2 key=cat

The connections are OK as shown by:

v.db.connect -p map3

But when I enter v.digit to modify some attribute all the points are
assigned to layer 1. Layer 2 with the map2 attribute table is ignored. Is
there a way to access and modify attributes of all layers in a patched map?
I had the same problem with d.what.vect.

Many thanks in advance

Aldo Clerici