[GRASS-user] Buffered categories

Hamish hamish_b at yahoo.com
Fri Feb 24 03:30:53 EST 2012


Richard wrote:
> rather than the 47 categories I need (because there are 47
> distinct  areas in the buffer.
> 
> So: how do I reassign the cats so there are 47 instead of 1
> in the buffer?

# get rid of the old
v.category type=centroid op=del
# create some new sequential ones
v.category type=centroid op=add cat=1 step=1

(cat= is the number it starts counting from)

if you need the cat to match the seed point, use v.distance as earlier
suggested. and do beware of what becomes of overlapping areas.


Hamish


More information about the grass-user mailing list