[GRASS-user] Re: Connect two tables in vector data

Richard Chirgwin rchirgwin at ozemail.com.au
Mon Oct 10 19:17:15 EDT 2011

On 11/10/11 4:02 PM, grass-user-request at lists.osgeo.org wrote:
> Message: 8
> Date: Mon, 10 Oct 2011 22:24:33 +0200
> From: Sebastian Schubert<schubert.seb at googlemail.com>
> Subject: [GRASS-user] Connect two tables in vector data
> To:grass-user at lists.osgeo.org
> Message-ID:
> 	<CAMVMZDCNnJOg7k6omJ1Ycy9zE8w-JyEG2RUQTTan8Mvy4npz0A at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> Hi,
> using 6.4.1, I imported a vector shape file which includes a tables.
> This table got a "cat" column by grass (which I don't need, I think)
> and already has a "key" column. In addition, I have got another table
> which also has a "key" column. Using both "key" columns, I want to
> combine both tables. How can I do that? I was able connect, as a
> second layer, the additional table to the vector data using the "key"
> column but then as far as I can see it is not really connected to the
> first table.
> I guess this is a standard procedure but I was not able to find the solution.
> Thanks
> Sebastian
Sebastian -

I think you're asking to connect two tables to the same map?

The two tables need to refer to the same features, and you use v.db.connect

Note that you can specify a different name for the key column using the 
key= parameter.


More information about the grass-user mailing list