Re: How to copy attributes from one layer to another?

Markus Metz <[email protected]>
Newsgroups gmane.comp.gis.grass.user
Message-ID <CAG+h=FG6B4bLX8BZH79OZHY6Nf82-y6fe9JQfLhj51cR+0zTKA@mail.gmail.com>
On Thu, Nov 23, 2017 at 12:13 AM, Eric Patton <[email protected]>
wrote:
>
> Is there an easy way to copy all attributes from layer 2 of a vector
points map to layer one (which doesn't currently exist - is will need to be
created)?
>
> Alternatively, maybe all I really need is a way to rename layer 2 to
layer 1 while keeping all attributes intact.

You need to distinguish between category values of the vector points and
attribute tables linked to a particular layer.

You can change the layer number of category values from layer 2 to layer 1
with

v.category option=chlayer layer=2,1

Now you need to reconnect the attribute table from layer 2 to layer 1 with
v.db.connect

HTH,

Markus M

>
> Background: I need to move all the attributes to layer 1 in my point map
in order to patch vector maps together with v.patch.
>
> Thanks,
>
> --
> Eric Patton <[email protected]>
>
> _______________________________________________
> grass-user mailing list
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/grass-user

_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.