v.what.rast vect=pnts rast=elevation col=heights
B) In case of a vector map without attached attribute table, first add
a new attribute table. This table is then populated with values
queried from the raster map:
# create new random vector points map v.random pnts n=100 # add new table, link to map v.db.addtable pnts col="heights double precision" # query raster map and upload values to vector table into specified column g.region rast=elevation -p v.what.rast vect=pnts raster=elevation column=heights # verify new attribute table: v.db.select pnts # verify statistics of uploaded values: v.univar map=pnts column=heights type=point
Last changed: $Date: 2012-02-08 13:39:58 -0800 (Wed, 08 Feb 2012) $