GRASS Vector Layers
Introduction
Prepare Road Network
create table road_network (cat integer, id integer);
v.category --o in=roads out=outmap option=del
v.category --o in=outmap out=stepmap option=add
v.to.db map=setpmap option=cat
update road_network set id=cat;