v.what.rast31grass
Uploads 3d raster values at positions of vector points to the table.
Usage
v.what.rast3
v.what.rast3 --help
v.what.rast3 map=name
[layer=string]
raster_3d=name
column=name
[where=sql_query]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
vector, sampling, raster, position, querying, attribute table, surface information
Overview
v.what.rast3 reads 3D raster value for each point in the vector and updates col column in vector attribute table by this value. The column should be type double. This module is based on v.what.rast.
If more points have the same category, attribute value is set to NULL. If 3D raster values is NULL, attribute value is set to NULL.
Notes
Examples
A) Reading values from 3D raster map at position of vector points, writing these values into a column of the attribute table connected to the vector map:
v.what.rast3 map=pnts raster3d=plume column=concentration
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 3d vector points mapv.random -z output=pnts npoints=100 zmin=0 zmax=50# add new table, link to mapv.db.addtable map=pnts column="concentration double precision"# query raster map and upload values to vector table into specified columng.region raster3d=plume -pv.what.rast3 map=pnts raster3d=plume column=concentration# verify new attribute table:v.db.select map=pnts# verify statistics of uploaded values:v.univar map=pnts column=concentration type=point
Source code
Available at: v.what.rast3 source code (history)
Accessed: Monday Feb 24 17:51:26 2025
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.