[GRASS-user] create a new vector map and add attributes

Martin Landa landa.martin at gmail.com
Thu Oct 27 07:23:58 EDT 2011


Hi,

2011/10/27 Mohammed Rashad <mohammedrashadkm at gmail.com>:
> How to create a new vector map by code and define its attribute table?

v.edit map=new tool=create
v.db.addtable map=new columns="cat int, label varchar(250)"

Martin

PS: in GRASS 7 omit "cat int,"

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-user mailing list