[GRASS-user] v.patch and cat values

Hamish hamish_nospam at yahoo.com
Tue Mar 6 22:10:54 EST 2007


Tyler Smith wrote:
> Hi,
> 
> I've just patched to vector maps together, using v.patch, followed by
> v.clean and v.db.addtable to add "reg_name varchar(40)". This all
> worked well, so I then turned to populating reg_name using d.what.rast
> -e. This also worked without problem. However, I now realize that the
> table created for this new vector map has given areas from the two
> different maps input to v.patch the same cat number. So when I edit
> the reg_name for an area from input map 1, it also applies that
> edit to an area from input map 2.
> 
> Is there a way to re-assign cat numbers to the areas in my map so that
> I can give them unique names? Ideally without having to repeat the
> v.patch step, as I've spent a couple hours doing d.what.rast editing!


when it patches them, does it create two layers? (no idea, but it might)

see v.reclass to reassign the cat column.
see v.to.db to populate columns from map features, also v.distance.


Hamish




More information about the grass-user mailing list