[GRASS-dev] Struggling using two layered vector maps with v.what.rast

Martin Landa landa.martin at gmail.com
Tue Jan 24 21:05:24 EST 2012


db.copy from_table=soil to_table=soil_2

-> makes copy of `soil` table

v.db.addtable map=soil table=soil_2 layer=2

-> it would overwrite `soil_2` table, but do nothing in this case, no
feature have category defined in layer 2.


v.random --o -z seed=1 output=soil n=20 zmin=0 zmax=100 column=clay
v.category input=soil out=soil2 option=transfer layer=1,2 --o
db.copy from_table=soil to_table=soil_2
v.db.connect map=soil2 table=soil_2 layer=2

v.db.addcolumn map=soil2 layer=1 columns='sand_frac DOUBLE PRECISION'
v.db.addcolumn map=soil2 layer=2 columns='sand_frac DOUBLE PRECISION'


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

More information about the grass-dev mailing list