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

Martin Landa landa.martin at gmail.com
Thu Oct 27 07:25:49 EDT 2011


2011/10/27 Martin Landa <landa.martin at gmail.com>:
> 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)"

I see "by code", so take a look at v.edit module (TOOL_CREATE).

Martin

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


More information about the grass-user mailing list